1 decade ago by dddaaammmooo
Hi guys/girls,
I'm current writing an endless runner style game using ImpactJS and everything had been going fine until I tried testing it on some lower spec'd machines.
On my dev machine (i7 3960x with GTX Titan) it obviously runs fine 1-2ms and 60FPS without a problem in Chrome. IE takes a little longer on draws but still maintains 60FPS.
On an older 2009 iMac (Core 2 Duo) it behaves very strangely. When I first load the game there is quite bad system lag showing in the performance tab. It spikes up to about 16ms every 2nd frame and then back to 0ms lag and can only maintain a maximum of 20FPS. But then suddenly for no reason maybe a minute or more later the system lag stops and the FPS jumps back up to 60. I'm really at a loss to see why, the machine is doing nothing else, no system updates or other network activity. I thought it might have been a preloading issue as the game uses some quite large (3mb) MP3/OGG files as background music, but even with the assets cached in the browser system lag was still all over the place.
On a slightly newer 2012 Lenovo X220 notebook (i5) the framerate jumps all over the place randomly, sometimes its running at 60FPS, sometimes it randomly dips down to 30FPS, back up to 40FPS... there really seems to be little logic behind it as the computer is not doing anything else. In all cases the performance graph always attributes it to system lag.
I've posted the game in its current state online at:
http://privatelifeband.com/oside/
And I've put an unbaked copy of the game code from the 'lib' folder in a ZIP file at:
http://privatelifeband.com/oside/lib.zip
Two questions-
1. Can somebody external please try the game out and tell me if they experience anything similar.
2. Can anyone see anything obvious I doing wrong in my code?
I'm current writing an endless runner style game using ImpactJS and everything had been going fine until I tried testing it on some lower spec'd machines.
On my dev machine (i7 3960x with GTX Titan) it obviously runs fine 1-2ms and 60FPS without a problem in Chrome. IE takes a little longer on draws but still maintains 60FPS.
On an older 2009 iMac (Core 2 Duo) it behaves very strangely. When I first load the game there is quite bad system lag showing in the performance tab. It spikes up to about 16ms every 2nd frame and then back to 0ms lag and can only maintain a maximum of 20FPS. But then suddenly for no reason maybe a minute or more later the system lag stops and the FPS jumps back up to 60. I'm really at a loss to see why, the machine is doing nothing else, no system updates or other network activity. I thought it might have been a preloading issue as the game uses some quite large (3mb) MP3/OGG files as background music, but even with the assets cached in the browser system lag was still all over the place.
On a slightly newer 2012 Lenovo X220 notebook (i5) the framerate jumps all over the place randomly, sometimes its running at 60FPS, sometimes it randomly dips down to 30FPS, back up to 40FPS... there really seems to be little logic behind it as the computer is not doing anything else. In all cases the performance graph always attributes it to system lag.
I've posted the game in its current state online at:
http://privatelifeband.com/oside/
And I've put an unbaked copy of the game code from the 'lib' folder in a ZIP file at:
http://privatelifeband.com/oside/lib.zip
Two questions-
1. Can somebody external please try the game out and tell me if they experience anything similar.
2. Can anyone see anything obvious I doing wrong in my code?