Re: [Tuxnes-devel] Speed?
Brought to you by:
tmmm
|
From: Jon N. <jn...@yi...> - 2001-06-27 19:24:24
|
>The renderer is not the fastest thing ever. Plus you have the overhead of >X... I think it is possible to use DGA with X, if it is not then try >loading the ggi libraries and playing in DGA mode. This works well for me. I haven't seen an option anywhere for running via DGA. Does it do this automagically if you're root? I was also under the impression that MIT-SHM took out a lot of X's overhead. And I've left ggi behind awhile ago... >We lose the ability to support the color emphasis and monochrome >bits, but gain a lot of speed. These changes, along with some modifications >to sprite rendering, have increased my speed from 20 fps to 55. Sounds cool > I'm >at the point where the actual CPU emulation (not using the dyn-rec engine) >uses >50% of the time, so it's worth optimizing that now. Do you have some profiling code? > I may backport >pixels.h to the x86 version of TuxNES to check on the speedup. That would be very cool. Heck, I'd like to run on my Dreamcast... >BTW, TuxNES already has an automatic frame skip. >Look in the UpdateDisplay*() functions. Hmmm. It doesn't seem to do it, then. It seems to render every frame and wait if necessary. >Have you tried disabling sound? It plays jerky if I leave it on... No difference here. It's particularly odd how the old renderer is supposedly faster than the new, but doesn't seem so for me. I guess the renderer itself is faster, but the overhead in X is greater. Is anyone else working on speedups in the X renderer? ----------------------------------------------------- http://eo.yifan.net Free POP3/Web Email, File Manager, Calendar and Address Book |