When I open this URL in firefox http://www.sdltutorials.com/ then after it's loaded, and I do not do anything with that page, just looking at it, then firefox eats up to 20% of my CPU. If I change tab, like back to this bug report filling, then firefox calms down and is back idle. Selecting the SDL tab makes firefox back to eating CPU state, even when the firefox itself is not focused window. I'm wondering what is wrong with that site that it eats my CPU. This is with firefox-10.0.1-1.fc16.x86_64.
There's a 'game' loop in javascript on this page (game.php): Main.OnLoop = function() { while(Events.HasEvents()) { var Event = Events.GetEvent(); console.log("Event : " + Event.Type + " - " + Event.Key); Game.OnEvent(Event); } Main.Context.clearRect(0, 0, Main.Width, Main.Height); Game.OnLoop(); Game.OnRender(Main.Context); FPS.OnLoop(); setTimeout(Main.OnLoop, 2); } So this is most likely wanted to make your CPU busy :).
Thanks for looking at it. I'm wondering why they are doing that, but that has definitely nothing to do with firefox.