Page 1 of 1

Animation Framework

Posted: 06 October 2021, 07:19
by Meeplelowda
What animation framework does BGA use? For about a week games that used to be smooth are having slow/glitchy animation (I'm using Chrome). I'm sure the problem is on my end, and I just want to know where to start trouble shooting. So far hardware diagnostics are not showing any problems.

Re: Animation Framework

Posted: 06 October 2021, 10:36
by robinzig
Meeplelowda wrote: 06 October 2021, 07:19 What animation framework does BGA use? For about a week games that used to be smooth are having slow/glitchy animation (I'm using Chrome). I'm sure the problem is on my end, and I just want to know where to start trouble shooting. So far hardware diagnostics are not showing any problems.
Not entirely sure what you're asking, or if this will be useful - but the animations in most BGA games (along with many other features), use a Javascript library/framework called dojo. If you're a developer and interested in the API it's documented here. And BGA has some common helpers that are built on top of it, that are probably what most animations in most games use.

But at the end of the day this information is only relevant for developers - at the end of the day all this does in the browser is change certain style attributes of an element over time, so that the element appears to move on the screen. While this will be a bit less performant than CSS-based animations (although some games will use the latter as well, or instead), it shouldn't be something that causes any modern browser or device to be slow or glitchy. It sounds to me like either you have general system issues, or if the issues with animation only appear on a particular game (or just a few) then perhaps there is a bug in the code of that game.

Re: Animation Framework

Posted: 06 October 2021, 10:52
by Meeplelowda
robinzig wrote: 06 October 2021, 10:36 It sounds to me like either you have general system issues, or if the issues with animation only appear on a particular game (or just a few) then perhaps there is a bug in the code of that game.
I am assuming it is a problem with my system, not the framework. The games where I'm noticing it were working fine a week ago, so there is no reason to believe they have changed. On the other hand, a week ago I took my laptop in for "repairs."

I just wanted to know where to focus my attention, i.e., now I know to look for something on my computer that is not playing nicely with Javascript/dojo. Thanks.