The strange case where Internet Explorer is faster than Chrome

In the WebGL game I'm working on in my free time, Internet Explorer beats Chrome's WebGL game performance. Strange, you think? Here are the details:


Chrome 47 seem to have introduced a change which is causing Endtime at Home not to work anymore nicely. Try it for yourself: start a game, go forward for about 600 meters, and then turn your head quickly about 180 degrees. If 'lucky' you can even skip the "walk 600 meters" part. The game will nearly freeze, dropping to a frame rate of about one frame per 5 seconds. I made a lot of tests, and I'm pretty certain this is likely caused by Chrome's garbage collector (or something related), which now kicks in more aggressively once your used memory has reached a certain threshold. But I'm not 100% sure yet, so any hints would be welcome.

It is possible to work around this issue by showing much less of the world to users using this browser version, but I decided to show a warning message for now. It works nice for all other browsers like Firefox and older Chrome versions. Interestingly, even Microsoft's Edge browser works nicely with the game. And it is pretty fast!

Curious, I even tried the game with Internet Explorer 11. And yes. Even IE is running this game faster then Chrome 47. What a shame. I reported the bug already to Google, let's see if they get the problem fixed soon.

Does any other developer discover a similar problem? Or a solution to this?

Update: The problem has now been fixed. I'm still unsure what was causing this, but I moved my code to use requestAnimationFrame() instead of setInterval(), and now it is also smooth on Chrome. Strange.

two comments, already:

Confirmed. By using Chrome I can run quiet a while. But when I stop moving and try to turn around – it freezes completly.
Lars - 18 12 15 - 11:43

I fixed the bug now, finally. See the update.
niko - 23 12 15 - 08:55


Name:  
Remember personal info?
yes
no
Email (optional):
URL (optional):
Enter "layered" (antispam):
Comment:Emoticons / Textile

  ( Register your username / Log in )

Notify: Yes, send me email when someone replies.  

Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.
Note: If you type in your email adress above, it will be visible to other visitors, although it will be hidden for bots using javaScript.