Dualcore CPUs and calculating path cost suggestion.

Dualcore CPUs and calculating path cost suggestion.

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
albon
Posts: 24
Joined: 26 Jun 2006, 19:49

Dualcore CPUs and calculating path cost suggestion.

Post by albon »

To take advantage of multicore CPUs, is it possible to make Spring calculate the "estimating path cost 8" and "32" in 2 separate threads ran together (or something like that) ?
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Post by Argh »

Er... imo, it'd be much better if modders would just remove all the MovementTypes they don't actually need, instead. Many mods are using the defaults, which are massive overkill.

Look at NanoBlobs- it only takes a second or two to calculate, with most maps.
albon
Posts: 24
Joined: 26 Jun 2006, 19:49

Post by albon »

Why not do both then ?
Since modders and developpers are not same persons...

More seriously, I'm sure modders sometimes are refreined from changing things in their mods because of the repath cost it would add.

Moreover, if "path 8" and "path 32" are not related, it should not be difficult to make them use 2 threads, should it?

Plus the fact that Spring could be advertised as "dualcore enhanced" or something like that :twisted:
Maybe even make a benchmark of pathing time for dualcore CPUs... 8)
Post Reply

Return to “Engine”