Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Thought it was a neat concept when I watched it on someone's stream, but when I went to play it, the physics went impossibly fast (more than twice as fast as on stream).  Tried it in a different browser and everything, I'm not sure what the disparity was.  I'll probably try coming back to it to see if I can get it working

Seems weird. But, this might be due to the screen resolution. Not sure.

What was your browser and screen resolution?

I'll maybe fix that in the post jam version :)

Tried Chrome and Firefox, 1080p screen.  Watching XBeowulf earlier on Twitch, his game seemed to be running at 50% the speed

Now I get it. I developed the game without any engine and my game depends on the FPS rather than depending upon the time delta. I was wrong in my assumption that HTML Canvas locks the FPS at 60 :(

(+1)

I was just thinking that it felt like PacMan (which tied to CPU freq) on modern computers!  I was also under the assumption that HTML Canvas targeted 60fps, is that no longer true?

(1 edit)

Looks like it. MDN reads,

"The number of callbacks is usually 60 times per second, but will generally match the display refresh rate in most web browsers as per W3C recommendation."

(+1)

Oh and of course my laptop's display is 240hz, lol.  I'll play with it tomorrow, that's good info to know!