djhworld/gomeboycolor

Investigate goroutines for performance improvement

Closed this issue · 1 comments

I've been messing around trying to eek out some extra performance from the emulator.

It appears as if moving the emulator code into a goroutine and then sending the screen data over a channel results in HUGE performance increases (like 20-30 frames in some cases)

Need to investigate whether this is a viable change and whether this change works across operating systems

Wow.

I moved the emulator code into a goroutine and used channels to export the screen data (see commit a2ef408) and the performance improvement has been pretty incredible.

I've seen a 20-30 frame p/second improvement in performance by making this change.

Just incredible.