Page 1 of 1

Bizarre performance issues

Posted: Mon May 23, 2005 12:29 am
by Andrea B Previtera
I installed the stable 1.2 release only yesterday, and until now I played using 1.0. There was something puzzling me about Exult smoothness, so I reinstalled the old version and did a few tests.

I've got two machines. A monster computer, and a rather normal one.
Strangely enough, version 1.0 performs almost the same on the two PCs, while version 1.2 performs *better*, and a lot better I'd say, on the old machine!! In particular, on the new machine it seems to suffer some "hiccups", unrelated to pathfinding as far as I can tell.

I am using Exult with both the sound packs but no OGG music, 400x300, 2xsai scaler.

Slower machine: Athlon XP 1500+, 512 mb ram, Windows XP sp2, Geforce 4 Mx, onboard sound card

Faster machine: Dual opteron 2400, 4 gb ram, Windows 2000 sp4, 2xSLI Geforce 6900

Re: Bizarre performance issues

Posted: Mon May 23, 2005 7:50 am
by drcode
I'm afraid I have no clue about this. Didn't 1.0 still use the old method of having the companions wander with the Avatar, instead of following in formation? That used a lot more CPU, so I'd expect 1.2 to be faster on both machines.

Re: Bizarre performance issues

Posted: Mon May 23, 2005 11:17 pm
by Andrea B Previtera
I didn't look into Exult code or the MinGW compiler that deeply but... could it be some issue with threading and the dual processor?

Re: Bizarre performance issues

Posted: Tue May 24, 2005 7:21 am
by drcode
Maybe. While we don't do multi-threading in the main code, SDL uses it for playing the audio. But I'd expect dual-processors to make that more efficient.

Re: Bizarre performance issues

Posted: Tue May 24, 2005 9:20 am
by Gradilla Dragon
Threads share the memory space with the process that created them. They can't be moved to another processor without moving the whole process.

Re: Bizarre performance issues

Posted: Tue May 24, 2005 7:53 pm
by Colourless
The Midi code under windows is Multithreaded. But it's not going to cause very much performance difference.