Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Pixelbox

Create 2D games in JavaScript, made easier · By Cedric Stoquer

Curious about capping frame rate

A topic by AndrewCarneal created Apr 21, 2020 Views: 132
Viewing posts 1 to 1

Hey! I'm not sure if this would relate to Pixelbox or if it would be more of a general game development topic, but I'm curious to know if there is a way to limit frame rate within Pixelbox. 

I find sometimes when I run my project it will run extremely smoothly and other times run at about half the speed with no changes to the code. I was thinking a potential work around to ensure consistent results would be to limit the frame rate to say 60fps, and write the game's code with that in mind, however I'm aware that there could be an endless list of reasons of why that may not work. Just thought I'd get some insight!