Skip to main content

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

Slow interactions

A topic by bobbertthelob created 12 days ago Views: 518 Replies: 2
Viewing posts 1 to 2

The latest version (v26) appears to be incredibly slow with any kind of interaction. On both Safari and iOS, it renders the game practically unplayable. Button clicks take about 5 seconds to respond, and they seem to batch up, so repeated clicks are suddenly all pressed together. Looking under the hood, it appears as though the screen is constantly repainting, spamming the machine's ability to render anything, causing the slow behavior. This was not observed in the previous v25.3 version.

Developer

Hi, what do you mean the screen is repainting?

I was curious why the page was so slow to respond, so I opened up my dev tools and did an analysis on where the resources were going. You can see things like which methods are taking up memory or cpu, or which ones take extended periods of time. You can also see how often the screen “repaints”, which is essentially how often the html is re-rendered. You would ideally only want to re-render the page when something has changed, and you’d want to batch your changes so you maybe have 1 repaint that updates 20 things, rather than 20 repaints that only update 1 thing. Repainting blocks user interaction and is slow, thus causing the slowness experienced. 
Hope that made sense!