stephena, on Wed Oct 8, 2008 11:40 AM, said:
I think you're confusing graphical performance with CPU emulation performance. Most systems today are so ridicuously fast that having the CPU emulation in C++ or assembly is pretty much the same thing. The number of for loops isn't the issue. Stella does have some problems with certain TIA emulation issues, but it's being worked on (and isn't related to your problem)
Thanks so much for your speedy response, stephena. I've attached two binaries to help illustrate the issue, and see if you can reproduce it on your end. I'm pretty new to emu's so I'm not exactly sure whether what I'm seeing is an emulation bug or not. Basically, the rate of the game at which the graphics update seems to jump, almost as if the framerate itself is changing while the game is in progress. In other words the code still crunches correctly, but the rate at which the screen refreshes isn't constant the way it is in Z26 defaults.
The only reason I mentioned my for loops is that when I recompile with a lesser number of my for loops, Stella seems to handle the code fine no matter what the graphics transport mode is. Here's what I'm seeing on my end with these two binaries and Stella defaults:
Armageddon_Complex_5_loops.bin
- Entire graphics display shudders
- The refresh rate jumps every two seconds, almost like a "hiccup" effect (sorry for the bad analogy, but I'm not sure how else to describe it)
Armageddon_Complex_2_loops.bin
- No shuddering
- Constant screen refresh rate.
When I use Open GL on the "5_loops" version refresh rate is constant, but the display still shudders. Again, none of these problems occur on Stella when I shorten the total number of for loops per drawscreen. Default Z26 didn't seem to have any of these issues, no matter how many loops I included.
System Specs:
- Windows XP Pro
- Pentium D 2.80GHz
- 2.0G RAM
- RADEON X1300 Series graphics adapter
Thanks again for for taking the time to respond. I guess since I was seeing a definite difference in the way Stella and Z26 were handling the same code, I wanted to know which would be better suited to debug for EPROM, but in no way was I suggesting that Stella was inferior to Z26 in emulation. If anything, I assumed the issue was with my code, and wanted to figure out which standard to optimize towards. Please let me know if I've left out any info that might be helpful.
Jarod.