You are not logged in.

Read the FAQ and Knowledge Base before posting.
We won't make a 3DS/2DS emulator.



#1 2007-03-23 04:50:08

shash
Administrator
Registered: 2007-03-17
Posts: 897

Some optimizations

I was really curious about what made current desmume CVS version so slow when ONLY 2D stuff was rendered, so I did some profiling + optimizing. It's only halfway done, but wanted to show more screenshots... This will be the last time I abuse this forums like this, I'll restart to update my blog with this infos, either related to desmume CVS or my particular version. Anyway, straight to the facts, the left screenshot is from the lastest WIP build released  (March 17, 2007), and on the right screenshot the version I'm working on:

yoshioldco7.th.jpg    yoshiwipej3.th.jpg

The speed up implementation is quite general, so it should affect the majority of games. I don't know when it'll be finished, as I should spend the rest of the month on other stuff, but at least I've started it tongue

Offline

#2 2007-03-23 11:37:54

snkmad
Member
Registered: 2007-03-17
Posts: 141
Website

Re: Some optimizations

Always great news.
Seems the Interpreter still have room for some speed.


Athlon 64 X2 3800+ / 2Gb DDR2 800Mhz
Geforce 8600GT 256MB / Windows XP PRO SP3
http://desmume.org/compatibility-list/

Offline

#3 2007-03-24 08:03:38

混沌hkuser
Member
Registered: 2007-03-23
Posts: 5

Re: Some optimizations

Good news,35fps,sweets  XD
When will it release?

Offline

#4 2007-03-24 09:46:37

ejacksonian
Member
Registered: 2007-03-22
Posts: 3

Re: Some optimizations

I have a question; how did you even manage to get it to 29 FPS? Mine barely runs with 10 FPS. What is your system stats?

Offline

#5 2007-03-24 14:57:55

shash
Administrator
Registered: 2007-03-17
Posts: 897

Re: Some optimizations

混沌hkuser wrote:

Good news,35fps,sweets  XD
When will it release?

As I already said, I don't know when it'll be finished.

ejacksonian wrote:

I have a question; how did you even manage to get it to 29 FPS? Mine barely runs with 10 FPS. What is your system stats?

Frameskip 0 and no sound. Pentium4 2.6ghz.

Offline

#6 2007-03-24 15:23:12

snkmad
Member
Registered: 2007-03-17
Posts: 141
Website

Re: Some optimizations

I get 27~29 on that screen here, with frameskip 0 and sound. Atlhon64 3000+


Athlon 64 X2 3800+ / 2Gb DDR2 800Mhz
Geforce 8600GT 256MB / Windows XP PRO SP3
http://desmume.org/compatibility-list/

Offline

#7 2007-03-24 20:03:09

henk
Member
Registered: 2007-03-24
Posts: 5

Re: Some optimizations

I've noticed something odd. The first 20 seconds or so, the title screen of this game runs at 24 fps, then it slowly decreases to 12fps and stays there. Does it happen to anyone else?

Sound is disabled and frameskip set to 0.

Offline

#8 2007-03-24 20:03:17

ejacksonian
Member
Registered: 2007-03-22
Posts: 3

Re: Some optimizations

shash wrote:
混沌hkuser wrote:

Good news,35fps,sweets  XD
When will it release?

As I already said, I don't know when it'll be finished.

ejacksonian wrote:

I have a question; how did you even manage to get it to 29 FPS? Mine barely runs with 10 FPS. What is your system stats?

Frameskip 0 and no sound. Pentium4 2.6ghz.

You know, I have frameskip of 0 and turned off the sound in many cases... maybe I need to try out the same game (Yoshi's Island DS) to get similar results.

Offline

#9 2007-03-25 13:28:20

混沌hkuser
Member
Registered: 2007-03-23
Posts: 5

Re: Some optimizations

What about frame skip on vba ?The frame skip system wasn't skiping the sound,you may take a look...

Offline

#10 2007-03-26 12:10:47

shash
Administrator
Registered: 2007-03-17
Posts: 897

Re: Some optimizations

混沌hkuser wrote:

What about frame skip on vba ?The frame skip system wasn't skiping the sound,you may take a look...

No, I'm not looking to change the current frameskip options, neither enhacing it. You're free to send a patch with some changes to make it more vba alike, but don't expect me to do it: frameskipping is a hack in my opinion, so I'm not going to support it ever.

Offline

#11 2007-03-26 19:47:05

evilynux
Member
From: Montréal
Registered: 2007-03-17
Posts: 118
Website

Re: Some optimizations

There seems to still be a difference between the calculus of FPS on the windows-specific port and on gtk/gtk-glade/cli.
There's gotta be a mistake because the difference is too major.
I get 57 to 63 fps running 64bit binairies on my Athlon 64 2800+ under GNU/Linux with both the cli and gtk-glade UIs.

I guess the key question here, to those reporting 30fps, can you play at full speed compared to the real NDS?
Call it 30fps or 60fps, Yoshi's Island is running at full speed for me.

http://organact.mine.nu/dokuwiki/lib/ex … and-01.png

Last edited by evilynux (2007-03-26 19:52:12)

Offline

#12 2007-03-26 21:58:02

shash
Administrator
Registered: 2007-03-17
Posts: 897

Re: Some optimizations

evilynux wrote:

There seems to still be a difference between the calculus of FPS on the windows-specific port and on gtk/gtk-glade/cli.
There's gotta be a mistake because the difference is too major.
I get 57 to 63 fps running 64bit binairies on my Athlon 64 2800+ under GNU/Linux with both the cli and gtk-glade UIs.

I guess the key question here, to those reporting 30fps, can you play at full speed compared to the real NDS?
Call it 30fps or 60fps, Yoshi's Island is running at full speed for me.

http://organact.mine.nu/dokuwiki/lib/ex … and-01.png

I can confirm it, compared it with hardware and with the old timing code, and it seems to be running quite nicely, but without my speed code, I barely get 50 fps, with it about 65fps, so...

1st) Your computer outperforms mine by a lot!
2nd) I'll have to fix desmume windows framerate counter.

Thanks for the information.

EDIT: Just fixed it on the CVS, should be correct now.

Offline

#13 2007-04-17 21:38:37

marcround
Member
Registered: 2007-04-17
Posts: 1

Re: Some optimizations

nice big_smile

ive only tried a few games so far

got any idea how to get sound? big_smile:D:D:D:D:D:D:D:D:D:D:D:D:D

Offline

#14 2007-04-18 17:43:59

snkmad
Member
Registered: 2007-03-17
Posts: 141
Website

Re: Some optimizations

After finding out how dumb i am, mixing old cvs files with new ones, i could see what shash was talking about.
Real Speed Up! Note: i used to get 5~7fps on this scene...
t1717_dumbme.JPG

Last edited by snkmad (2007-04-18 17:51:07)


Athlon 64 X2 3800+ / 2Gb DDR2 800Mhz
Geforce 8600GT 256MB / Windows XP PRO SP3
http://desmume.org/compatibility-list/

Offline

#15 2007-04-23 09:20:26

david1984
Member
Registered: 2007-04-23
Posts: 2

Re: Some optimizations

hi! im new! My first impression was a little bad, but after i set the frameskip 0 i love it!(sorry for the bad english)
Well in  my machine(1000 Mhz celeron, 386 MB ram, mx 440) it worked 1-3 fps, and after i modifided it  go 10-15 fps! O yeah about the sound off switching thing: i dont really need it! the frame rate not changed in no sound or directsound, but it still blurred in few games!

Offline

#16 2007-04-25 02:23:02

dbgarza
Member
Registered: 2007-04-25
Posts: 1

Re: Some optimizations

On the title screen of Yoshi's Island DS I get 32 FPS on the current March 17 WIP with frameskip 0 and sound enabled, but of course my specs are 3.2 Ghz Pentium 4 HT, 256 MB ATI Radeon 9250 Video Card and 1 GB RAM, but the speed on the emu still can be improved even more, since and I'm not advertising or anything but the closest competition for Desmume which is NO$GBA in the latest version they released runs Yoshi's Island DS even faster I dare to say at real speed on my computer with sound enabled, so I'm pretty sure shash here can do it too, also there is some things Desmume wins over NO$GBA like better GUI and working save state so shash you can do it buddy you have a very promising emu on your hands ^^

Offline

#17 2007-04-25 02:58:05

shash
Administrator
Registered: 2007-03-17
Posts: 897

Re: Some optimizations

On my lastest non released WIP, I get between 52-53fps with sound enabled, and 55-56fps with it disabled. I have (as already said before) a 2.6Ghz Pentium 4, so you should get faster speeds. You'll just have to wait.

Offline

#18 2007-04-25 12:28:48

Albedo
Member
Registered: 2007-04-25
Posts: 2

Re: Some optimizations

you're doing a great job shash. any hints when we can expect to see the WIP? smile

Offline

#19 2007-04-25 13:05:52

SCHUMI-4-EVA
Member
Registered: 2007-03-19
Posts: 97

Re: Some optimizations

Sash why are there no more WIP releases?

Offline

#20 2007-04-25 13:45:19

Keitaro Urashima
Member
Registered: 2007-03-30
Posts: 8

Re: Some optimizations

What happen to amponzi?:(

Offline

#21 2007-04-25 14:12:01

shash
Administrator
Registered: 2007-03-17
Posts: 897

Re: Some optimizations

SCHUMI-4-EVA wrote:

Sash why are there no more WIP releases?

There won't be any WIP releases in the near future, and that's as much as I can tell. If you think a bit about it, you'll get why. Stop asking, thanks.

Offline

#22 2007-04-25 15:42:49

SCHUMI-4-EVA
Member
Registered: 2007-03-19
Posts: 97

Re: Some optimizations

What the...where did my reply go?....I guess my net messed up and did not send it or something...

Anyways ok fine then shash ill stop asking.

Offline

Board footer

Powered by FluxBB