blazen1te Posted Monday at 02:00 Report Share Posted Monday at 02:00 I rarely hit 40% utilization on my pc even during very intensive matches with lots of ai's. Is that an issue with my pc or is that an issue with the game. It stutters constantly even in the very early game. Not sure why it's doing this. Quote Link to comment Share on other sites More sharing options...
Stan` Posted Monday at 05:52 Report Share Posted Monday at 05:52 What OS are you on ? Quote Link to comment Share on other sites More sharing options...
Atrik Posted Monday at 11:51 Report Share Posted Monday at 11:51 Looks very alike the a27 bug/lag that should be fixed with a27.1. Quote Link to comment Share on other sites More sharing options...
Seleucids Posted Monday at 14:10 Report Share Posted Monday at 14:10 I am on A27.1 RC2 and this is what the consumption looks like when playing a giant 2v2 fight: With A27.1, you can stress out 1 virtual core to 100% and reach smooth performance in game. However, the engine is not parallel-processed yet; the jobs are still all piled up on 1 CPU core instead of distributed out to all. Your 40% utilisation could be true for overall if you are dual-core, but if you are capped at 40% on each core then it's probably caused by the performance issue with Spidermonkey. Quote Link to comment Share on other sites More sharing options...
Stan` Posted Monday at 15:17 Report Share Posted Monday at 15:17 1 hour ago, Seleucids said: However, the engine is not parallel-processed yet; the jobs are still all piled up on 1 CPU core instead of distributed out to all. Js isn't threaded but the pathfinders and other systems are you can see what the threads are doing using the web page profiler 2 Quote Link to comment Share on other sites More sharing options...
Seleucids Posted Monday at 15:22 Report Share Posted Monday at 15:22 4 minutes ago, Stan` said: Js isn't threaded but the pathfinders and other systems are you can see what the threads are doing using the web page profiler Yes. But threads are not processes and ideally we can multi process all those pathfinders instead of threading them. Thread still leaves them ok the same core Also could the simulation updates on each entity be done in parallel? That would also mean a mega performance boost Quote Link to comment Share on other sites More sharing options...
Stan` Posted Monday at 15:34 Report Share Posted Monday at 15:34 15 minutes ago, Seleucids said: Thread still leaves them ok the same core No threads are dispatched on other cores by your os. That's the point 15 minutes ago, Seleucids said: Also could the simulation updates on each entity be done in parallel? That would also mean a mega performance boost Maybe but that's a very hard thing to split since there are a lot of relations to take into account and the thing you want is interaction. You need to find a way to isolate systems like the pathfinding calculations which are gathered then dispatched on multiple threads. 1 Quote Link to comment Share on other sites More sharing options...
Dunedan Posted Monday at 17:03 Report Share Posted Monday at 17:03 1 hour ago, Seleucids said: But threads are not processes and ideally we can multi process all those pathfinders instead of threading them. Thread still leaves them ok the same core That's wrong. You might have been thinking about interpreted languages which use a Global Interpreter Lock (GIL), like CPython, which results in them not being able to utilize multiple CPU cores when using threads, but that's a limitation of such languages and doesn't apply to C++. And as a side note: Even in languages which use a GIL, multiple threads can be faster than multiple processes, depending on the kind of work to be parallelized. Check out for example the commit linked below, where I speed up validation of entities. I compared using multiple threads vs. multiple processes, but as more time is spent loading data from disk than doing actual CPU heavy computation, using multiple threads instead of using multiple processes was significantly faster, thanks to threads having a much lower overhead than processes. https://gitea.wildfiregames.com/0ad/0ad/commit/e755ef715565409b93cecdb2d84b5098a518fef6 3 1 Quote Link to comment Share on other sites More sharing options...
blazen1te Posted Monday at 20:16 Author Report Share Posted Monday at 20:16 I'm on windows 10, my cpu has 6 hyperthreaded cores, should I grab the latest build from the site, or maybe switch from vulken to opengl? I can take a screenshot of my task manager during a game if you'd like. Quote Link to comment Share on other sites More sharing options...
Deicide4u Posted Monday at 23:12 Report Share Posted Monday at 23:12 (edited) 21 hours ago, blazen1te said: I rarely hit 40% utilization on my pc even during very intensive matches with lots of ai's. The AI logic was historically and it still is one of the bigger performance bottlenecks. This is related, in part, to the fact that most of the game's logic is still single-threaded. Pathfinder got its own thread in alpha 25. Sadly, this means that your "6 hyper-threaded cores" won't help you much. They might even be worse than a standard 2-core PCs of the past. This is because modern hardware design is focused on having many slower CPU cores, while older design retained fewer, but faster CPUs. So, your CPU clock speed is what matters the most, followed by the GPU memory (if you want high details on everything). Edited Monday at 23:21 by Deicide4u Autocomplete is funny Quote Link to comment Share on other sites More sharing options...
blazen1te Posted Tuesday at 00:05 Author Report Share Posted Tuesday at 00:05 it clocks decently high, and if two cores are all that matters I'm thinking of overclocking, because i have plenty of thermal headroom currently. my gpu is also underclocked currently, but I'll overclock the vram and see how that goes. Do you think this will change in the future, or will it always be dependent on two cores? Quote Link to comment Share on other sites More sharing options...
Seleucids Posted Tuesday at 11:48 Report Share Posted Tuesday at 11:48 11 hours ago, blazen1te said: I'm thinking of overclocking Good luck with this, although I would recommend you use one of the A27.1 RC version https://releases.wildfiregames.com/rc/ for this, because they are truly able to take advantage of all clock cycles whereas A27.0 idles the core. 11 hours ago, blazen1te said: will it always be dependent on two cores? From what i have observed in A27.1 and B28, they are both using 1 CPU core. But as Dunedan suggested, it might not be a bad thing. 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.