DGMurdockIII Posted August 22, 2010 Report Share Posted August 22, 2010 I would like to see support for multithreading such as multi-core systems http://en.wikipedia.org/wiki/Multithreading Quote Link to comment Share on other sites More sharing options...
xjake88x Posted August 23, 2010 Report Share Posted August 23, 2010 Multithreading definitely seems to be an important staple in modern game development! More and more games are taking full use of multi-core & HT processors.I think that you raise a good point here, on a performance level. Quote Link to comment Share on other sites More sharing options...
hex539 Posted August 31, 2010 Report Share Posted August 31, 2010 Multithreading could work well with AI (branching every, say, 16 actors off into their own thread), which is a bottleneck on bigger scenes, but it's very hard to retroactively integrate parallelization into a project born before multithreading became popular.Maybe this will happen once the 0AD gets to 'feature-complete' and 'fully playable' stages, but for now I think most people are more interested in being able to play the game at all than play it fast Quote Link to comment Share on other sites More sharing options...
Ykkrosh Posted August 31, 2010 Report Share Posted August 31, 2010 Yeah, the synchronisation overhead would probably defeat any of the performance benefits if we tried to do much multithreading with the current engine since there's too many dependencies between the code, and it would add a lot of complexity. There are architectures that can make it more feasible but it'd be very hard to switch to them.There are some cases where we should add threading to improve latency (in the networking code), and some small areas where we possibly could use it to improve multi-core performance (like pathfinding, and maybe some graphics code (like skinning)), but it's probably more worthwhile spending time optimising single-core performance first. Quote Link to comment Share on other sites More sharing options...
DGMurdockIII Posted August 31, 2010 Author Report Share Posted August 31, 2010 why couldn't you optimize both single-core and multi-core performance at the same time?I can also see if you wanted to first make sure this you had multi-core performance it as much as you could for single-core performance before working on multi-core stuff Quote Link to comment Share on other sites More sharing options...
janwas Posted September 4, 2010 Report Share Posted September 4, 2010 why couldn't you optimize both single-core and multi-core performance at the same time?As mentioned, it is basically impossible to retroactively optimize multi-core performance in a meaningful fashion, i.e. scaling properly on 8+ cores.The usual way of managing that nowadays is splitting the simulation updates into microtasks and dispatching them to available cores. That (as with other huge change in requirements) entails a major redesign+rewrite, which is not in the cards right now Quote Link to comment Share on other sites More sharing options...
Ykkrosh Posted September 4, 2010 Report Share Posted September 4, 2010 Infinitely parallelising simulation updates wouldn't help that much anyway - even in its current poorly-optimised state, most of the time is usually spent in other areas (mostly graphics, some GUI, etc). Probably most of the engine would have to be redesigned else it'd be bottlenecked by some serial code and wouldn't get much improvement.But we should revisit this when we start our next engine and 8+ cores is the min spec Quote Link to comment Share on other sites More sharing options...
DGMurdockIII Posted January 3, 2011 Author Report Share Posted January 3, 2011 this is need Quote Link to comment Share on other sites More sharing options...
diriel Posted January 15, 2011 Report Share Posted January 15, 2011 (edited) I have seen this same thing discussed over and over in the Dwarf Fortress forums. What it kind of amounts to is if you buy a new car that runs on Gasoline, then you decide later that you want a Diesel car, it would be prohibitively difficult to "Just Change It Over".I have not looked at the current architecture, but I would think running the graffics on the GPU would be mostly do-able. In fact looking at the Screen Shots I am betting they already do this. Perhaps a little bit of Rough Multi-Core support may be possible, though probably not really easy. But Multi-Core / Multi-Threaded is !!*_HARD_*!! Not just because they started single core, it really is non-trivial.That all being said, boy I can hardly wait for this game to hit 1.0!!Gary Edited January 15, 2011 by diriel Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.