Spring is running in SMP - Page 27

Spring is running in SMP

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
zerver
Spring Developer
Posts: 1358
Joined: 16 Dec 2006, 20:59

Re: Spring is running in SMP

Post by zerver »

Sorry, we're not quite there yet. New BA 7.13 may be error spam free, but LUA based graphics still has performance related issues.
Poil
Posts: 12
Joined: 13 Feb 2010, 13:31

Re: Spring is running in SMP

Post by Poil »

Is there any spring 0.82.x MT ?
zerver
Spring Developer
Posts: 1358
Joined: 16 Dec 2006, 20:59

Re: Spring is running in SMP

Post by zerver »

Yes, it is included in the installer.
User avatar
very_bad_soldier
Posts: 1397
Joined: 20 Feb 2007, 01:10

Re: Spring is running in SMP

Post by very_bad_soldier »

zerver wrote:Sorry, we're not quite there yet. New BA 7.13 may be error spam free, but LUA based graphics still has performance related issues.
Is there anything you can do when coding a widget to avoid those problems? I guess you should only use draw functions in the DrawXY()-callins, right? Anything else?
zerver
Spring Developer
Posts: 1358
Joined: 16 Dec 2006, 20:59

Re: Spring is running in SMP

Post by zerver »

I'm afraid not, it is the actual drawing that kills performance. The main reason is that LUA is single threaded. Will hopefully be fixed in some future Spring release.
echoone
AI Developer
Posts: 150
Joined: 16 Nov 2009, 18:26

Re: Spring is running in SMP

Post by echoone »

zerver wrote:I'm afraid not, it is the actual drawing that kills performance. The main reason is that LUA is single threaded. Will hopefully be fixed in some future Spring release.
What are the implications of your statement? Does that mean a multithreaded LUA can be included? Or that there is some other technical solution? If the later, can you expand on it a little?

Thanks.
zerver
Spring Developer
Posts: 1358
Joined: 16 Dec 2006, 20:59

Re: Spring is running in SMP

Post by zerver »

echoone wrote:What are the implications of your statement? Does that mean a multithreaded LUA can be included? Or that there is some other technical solution? If the later, can you expand on it a little?
What could be doable is a separate LUA execution environment for the rendering. However, this means difficulties in sharing data - the environments will be unaware of each others variables.

Other changes are needed as well, see my post here:
http://springrts.com/phpbb/viewtopic.php?f=12&t=23753
zerver
Spring Developer
Posts: 1358
Joined: 16 Dec 2006, 20:59

Re: Spring is running in SMP

Post by zerver »

FYI MT currently has desync problems.

Not all games desync, but quite a few. I'm working on finding out why.
zerver
Spring Developer
Posts: 1358
Joined: 16 Dec 2006, 20:59

Re: Spring is running in SMP

Post by zerver »

There will probably be a 0.82.4 release pretty soon, but for those who cannot wait, the desync fixed MT build can be found here:

http://www.springfiles.com/show_file.php?id=2754
zerver
Spring Developer
Posts: 1358
Joined: 16 Dec 2006, 20:59

Re: Spring is running in SMP

Post by zerver »

0.82.5 MT, hopefully with less crash:
http://www.springfiles.com/show_file.php?id=2772
Post Reply

Return to “Engine”