The strange case where Internet Explorer is faster than Chrome

Posted on:December 16 2015

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.





Comments:


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


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


Add comment:


Posted by:


Enter the missing letter in: "Int?rnational"


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons