UFO:Alien Invasion
Technical support => Bugs in stable version (2.5) => Topic started by: Charlie on December 13, 2012, 08:09:44 pm
-
Smoke from smoke grenades drops my framerate to an unplayable level, from 50fps to 6fps.
Tested on head (8a9c7289efef39c966ba79b3183ba4806689f6d0 at time of writing).
GPU: GeForce GTX 285M
CPU: Intel Core i7 820QM
RAM: 2 x 4GB SODIMM 667MHz
nvidia-drivers 310.19
This is an old issue, this thread (http://ufoai.org/forum/index.php/topic,6755.msg57171.html) states that it was fixed, but clearly its not.
-
There is a fix attached to this post (http://ufoai.org/forum/index.php/topic,6755.msg56217.html#msg56217).
-
The change has not been committed so I don't know why that thread is marked "fixed", and its a bad idea to tell users to overwrite a file with an attached one in a locked forum as this file will get out of synch with the repository and potentially break other things. All that is needed to work around the issue is to change one word, as I outlined in this post (http://ufoai.org/forum/index.php/topic,6755.msg56210.html#msg56210).
-
It's a known issue but only effects slower machines (mine included). There are other issues with that particle, not just the physics one, so it will have to be looked at and tweaked before 2.5 goes out. The one-word change is good for performance, but there are advantages to having the smoke particle use physics. For that reason, another solution might be found. The file is just a temporary measure you can use until a fix is made.
-
... but only effects slower machines ...
This makes an Intel i5-3450 a slow machine per definition. :D
-
Good to know you'll look at it, but I wouldn't belittle it to something that affects only "slower machines"... look at my specs, that's not a slow machine ;]
If I can play Far Cry 3 comfortably, I hope to one day be able to see proper smoke in UFO:AI ;]
-
Hehe, ok. Well I'm on a "slow machine", and some people don't seem to have the problems, so I just assumed. I've extended the TODO item for 2.5 (http://ufoai.org/wiki/TODO/2.5) to be clear that there are multiple issues that need to be addressed.
-
Hehe, ok. Well I'm on a "slow machine", and some people don't seem to have the problems, so I just assumed. I've extended the TODO item for 2.5 (http://ufoai.org/wiki/TODO/2.5) to be clear that there are multiple issues that need to be addressed.
Finally someone believes me. :P TBH our particle system is not the best...
-
FYI:
I confirm that the "PC_SPAWN: Could not spawn child particle for 'smokefield' (smokefield_smoke)" spam of messages in the console does not cause the performance drop but is a symptom of whatever causes it, because the spam also appears when I set physics=false and yet the FPS rate is fine then.
-
ufoai/base/ufos/ptl_misc.ufo
physics=false=50fps
tps=24=7fps
tps=20=8fps
tps=16=10fps
tps=12=13fps
tps=8=19fps
tps=4=34fps
tps=3=47-50fps
tps=2=50fps
http://imgur.com/a/2u39S
-
I've just pushed a change to the smoke particle that removes its physics calculations and sets the tps to 6. I found it vastly improved my framerate without any significant change in the visuals or functioning of the smoke grenades. Most importantly, I found I could have 5 smoke grenades going at once without maxing out the allowed particles, which caused other particles (existing smoke or other weapon effects, for instance) to disappear.
The numbers may get changed further, since this is Crystan's field, but this should work until we can find a more permanent solution.