Memory leaks and web browsers

You can talk about almost anything that you want to on this board.

Moderator: Moderators

lidnariq
Posts: 10677
Joined: Sun Apr 13, 2008 11:12 am
Location: Seattle

Re: Memory leaks and web browsers

Post by lidnariq »

The important difference is that Moore's Law used to mean that "Uses all the resources of 3-year-old hardware" would imply "Works fantastically on current hardware". Not true anymore.
User avatar
Dwedit
Posts: 4470
Joined: Fri Nov 19, 2004 7:35 pm
Contact:

Re: Memory leaks and web browsers

Post by Dwedit »

The solution to something that unnecessarily uses 100% CPU usage is to dive in with OllyDbg, and find out where it's wasting all the time.
Then insert Sleep(1) there, and watch the CPU usage go down to 1%.
Here come the fortune cookies! Here come the fortune cookies! They're wearing paper hats!
tepples
Posts: 22345
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Re: Memory leaks and web browsers

Post by tepples »

Unless it's spinning on vsync, in which case Sleep(1) may result in visible tearing.
User avatar
rainwarrior
Posts: 8062
Joined: Sun Jan 22, 2012 12:03 pm
Location: Canada
Contact:

Re: Memory leaks and web browsers

Post by rainwarrior »

Well, in the case of Hate Plus it's because RenPy has an option to limit the framerate that the author of the game did not enable. Apparently it's off by default, so unfortunately the naive user gets 100% CPU usage.

Thanks for mentioning OllyDbg though, this looks neat. I'd never heard of it.
Post Reply