VOGONS


First post, by ih8registrations

User metadata
Rank Oldbie
Rank
Oldbie

Howdy ho,

Apply from root dosbox directory "patch -p0 < optimize.diff".

Optimizations to normal_loop, some pic routines, and a little touch up to the mixer handler. ie. speedup isn't cpu core specific.

Rearrangment for fallthrough to the most common paths and ridding of jumps mainly.

Timed with rdtsc and just used variables to track common paths.

Enjoy!

Oh yeah, speed up is relative to an athlon xp /w 256k l2, so something like an athlon 64 may not see as much an improvement since it handles thrashing better.

Reply 1 of 10, by gulikoza

User metadata
Rank Oldbie
Rank
Oldbie

I tried the patch (clean cvs from today) but the keyboard input is not responding. I can't type anything 🙁
But great to see speed improvment if the issues can be solved 😀

Reply 2 of 10, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

well my guess would be that most "speed" comes from the fact that you reduced the amount of gfx events.

Water flows down the stream
How to ask questions the smart way!

Reply 3 of 10, by Reckless

User metadata
Rank Oldbie
Rank
Oldbie

Qbix, is that a bad thing or good thing. Hard to tell from your response 😀

Reply 4 of 10, by XulChris

User metadata
Rank Member
Rank
Member

"speed" is an illusion, DOSBox speed doubly so.

Reply 5 of 10, by avatar_58

User metadata
Rank Oldbie
Rank
Oldbie

What game would benefit from 10% increases? 😕 Anything that is too "slow" would only cause sound stuttering really. Therefore you would need much more than 10%.

Reply 6 of 10, by Snover

User metadata
Rank l33t++
Rank
l33t++

10% is 10% more than before, which is good enough for me.

Yes, it’s my fault.

Reply 7 of 10, by icemann

User metadata
Rank Member
Rank
Member

Here here. 10% is ALOT better than 0%.

Two stones, two crosses, the rest is just icing. - 7th Guest

Reply 8 of 10, by DosFreak

User metadata
Rank l33t++
Rank
l33t++

Speaking of speed increases....

I reinstalled 2003 Server today and benchmarked DosBox, Now I can use a few thousand more cycles in 2003 than I could on 2000. Hopefully it was some driver or software slowing down 2000 and not some difference between 2003/2000. I'll True Image my system and revert back and see if it's the same.

How To Ask Questions The Smart Way
Make your games work offline

Reply 9 of 10, by icemann

User metadata
Rank Member
Rank
Member

Wonder what the cycle difference is between win98 and XP. I was using 98 right up until midway through last year and I haven`t noticed any difference really since the change.

Two stones, two crosses, the rest is just icing. - 7th Guest

Reply 10 of 10, by tomba

User metadata
Rank Newbie
Rank
Newbie

I tried to test it but the keyboard doesn't work for me too. Any hints? (WinXP+MinGW+DOSBox CVS)

t.