Multithreading

Multithreading

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
Mariko
Posts: 3
Joined: 18 Jun 2015, 16:29

Multithreading

Post by Mariko »

Hi,

i just wanted to ask if there is a plan to re- implement a multi threaded version of spring. We had one a few years ago.. and another one is out there .. giving a performance increase of 5x, which would finally allow all Players to finish the games without lagging out after 20mins and to play the game how its meant to be .. 8vs8 with at least 500 units each.

M.

Removed link to GPL violating material. (Silentwings)
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6241
Joined: 29 Apr 2005, 01:14

Re: Multithreading

Post by FLOZi »

Please post your benchmarks.
User avatar
jamerlan
Balanced Annihilation Developer
Posts: 683
Joined: 20 Oct 2009, 13:04

Re: Multithreading

Post by jamerlan »

Just test spring 99 release. Maybe it will work fast enough for you
gajop
Moderator
Posts: 3051
Joined: 05 Aug 2009, 20:42

Re: Multithreading

Post by gajop »

FLOZi wrote:Please post your benchmarks.
This. 5x faster? Definitely not. I concede that it was fast and faster, but it's certainly not going to achieve a 5x speed increase normally.
Also the much more important issues of being GPL infringing, "bad design" (I can't confirm this but that was the consensus among other devs), and not really working well with Lua games AFAIK (and Lua is the future)
User avatar
albator
Posts: 866
Joined: 14 Jan 2009, 14:20

Re: Multithreading

Post by albator »

Tbh, MT was not x5 in average but in some specific case it gave even better enhancement: when catching up a game the simulation was fluid (>30fps) while now I am around 5 fps in the same situation.
Mariko
Posts: 3
Joined: 18 Jun 2015, 16:29

Re: Multithreading

Post by Mariko »

oh... okok now i get why no on is talking about it :) and ok the 5 times perfomance increase is just something i read on the page, i couldn't try it out.. but i remember the MT version being faster like albator said.

what's new in spring 99? I couldn't find anything performance related in the changelog..

and back to the original question .. are you working on a multithreaded version of the simulation at the moment?
hokomoko
Spring Developer
Posts: 593
Joined: 02 Jun 2014, 00:46

Re: Multithreading

Post by hokomoko »

are you working on a multithreaded version of the simulation at the moment?
I really like these questions, they remind me of the old issue of bosses who tell you both what to do and how to do it.

If your issue is that Spring runs too slow on you machine, lately every release candidate of 99.0 is faster than the previous one, you're more than welcome to test them and give us feedback on your issues if there are any.

Whether the simulation is powered by multiple threads, by a single thread or by 12 grandmas on bicycles is irrelevant.
Mariko
Posts: 3
Joined: 18 Jun 2015, 16:29

Re: Multithreading

Post by Mariko »

I'm neither telling you what to do, nor how to do it, nor I criticised your way of doing thing .. or have I? (if I have i'm sorry)

i realize now that my question might have brought up old issues .. but in the end it was just a simple question. Sure you don't have to answer it but then why answer at all telling me about grandmas?
hokomoko
Spring Developer
Posts: 593
Joined: 02 Jun 2014, 00:46

Re: Multithreading

Post by hokomoko »

k, currently some of the simulation is multithreaded, some isn't.

Sorry if I was too hostile, I really want to know how the latest engine performs on your machine.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Multithreading

Post by Forboding Angel »

hokomoko wrote:Sorry if I was too hostile, I really want to know how the latest engine performs on your machine.
You weren't. This discussion is idiotic. Zerver's MT build put itself out there like it was the only thing spring multithreaded, when spring was ALREADY multithreaded. Zerver's implementation was faster in some respects (probably because it mostly tossed lua out the window), but far inferior.

I for one any getting very effing sick and tired of seeing this pop up.

I suggest ripping metal and energy out of the engine and moving it to lua (this isn't a bad idea anyway). That will solve little idiotic threads like this.
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10454
Joined: 24 Jan 2006, 21:12

Re: Multithreading

Post by PicassoCT »

Calling a discussion idiotic is not civil.
None the less - both sides had there say. The thread is archived and can be found.
Patch is welcome when it comes to improving lua performance or threadpool implementation.

Its a shame that all of zervers hard work wents to waste, but sometimes thats the run of the world.
As one of the not so clever people i find it rather positive though, to be still able to read and understand the source.

Please do not feel discouraged from contribooting. Many Spring devs are mature, serious people and will happily discuss the pros and cons of the mt engine version with you.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Multithreading

Post by smoth »

Eh, you fell victim to marketing, unless you have some real proof you are just going by hearsay.
Post Reply

Return to “Engine”