|
Post by CdrPlatypus on Apr 16, 2015 20:18:37 GMT -5
fallen , Cory Trese is there a time buffer inserted in the end turn code for touch screens? The reason I am asking is I have a very powerful system and the turns seem to take a bit longer to process then they should. Or perhaps the code is not optimized for multi-core systems? I am running a 3.2 ghz Hex Core (AMD Black FX) I know its a minor complaint, but I am used to hitting end of turn in my games and having the turn processed instantly. I'm spoiled.
|
|
sheff
Star Hero
[ Star Traders 2 Supporter ]
Posts: 503
|
PC Speed
Apr 16, 2015 22:41:09 GMT -5
via mobile
Post by sheff on Apr 16, 2015 22:41:09 GMT -5
Some games don't take well to multi-threading. Some even get worse. I'm not so good with electronics, but this I have heard on the great interwebs. Try putting the game cartridge in the freezer for a half hour and then try it.
|
|
|
Post by Cory Trese on Apr 17, 2015 8:17:48 GMT -5
Regarding your perception of how long it should take vs. how long it does take I cannot help.
The code is highly optimized for multi-core systems, but that won't speed up IO or sync cycles.
The end of turn is mostly bound by sequential, transactional writes to a non-ordered file. IO is almost always the bottleneck, no matter how fast the CPU is.
In addition, there is a fixed time buffer -- around 16ms -- that is build into the Cocos2d-x game engine. That's only about the duration of a frame tho, and probably impossible for anyone to realistically notice.
|
|
|
Post by Cory Trese on Apr 17, 2015 8:25:36 GMT -5
Sorry -- I thought this was about Heroes. The turn processing in 4X depends entirely on the AI's performance.
Faster performance comes from less AI to calculate. The less Aliens, the shorter turn processing.
In the case of 4X vs. multi-core systems, it will not help to add more cores because AI compute in this case is serial, not parallel.
As Cocos2d-x brings us forward to C++11 we will keep working on improving the turn processor for both 4X and TA2, aiming for better performance and higher accuracy.
|
|
|
Post by CdrPlatypus on Apr 17, 2015 9:49:48 GMT -5
Thx for the detailed answer
|
|