tips for good rendering needed

This is an archive of a topic from NESdev BBS, taken in mid-October 2019 before a server upgrade.
View original topic
tips for good rendering needed
by on (#17780)
well im back to nes emulation scene.. :)

I just want some tips to make rendering faster, when i rip off rendering from the emulator, that means not to display anything to screen the emu (cpu, ppu, apu, etc) takes 4%~ of cpu time when i turn it on it takes 35%~ in a Pentium 4 2.8, visual c compiled and optimized at maximum (of course).
Help!!

by on (#17783)
Run a profiler. Once you've done that (which I imagine you won't), try the following:

* Leave rendering in but disable the last step of drawing it to the screen. What is performance now?
* Malloc a memory buffer and (invisibly) render to that. What is the performance now?

How does your renderer work in general?