Memory leaks and web browsers
Moderator: Moderators
Re: Memory leaks and web browsers
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.
Re: Memory leaks and web browsers
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%.
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!
Re: Memory leaks and web browsers
Unless it's spinning on vsync, in which case Sleep(1) may result in visible tearing.
- rainwarrior
- Posts: 8062
- Joined: Sun Jan 22, 2012 12:03 pm
- Location: Canada
- Contact:
Re: Memory leaks and web browsers
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.
Thanks for mentioning OllyDbg though, this looks neat. I'd never heard of it.