I noticed a blog comment about character physics slowing down the game on a laptop.
Has anyone looked into how the physics things are done in the script? How easy would it be to disable them?
I think a mod would be able to quickly fix this, and then we can send it do David so he can use the same implementation to push it out with the next patch, linked to the config files etc. in the proper way.
[Optimization mod] Disabling character physics
[Optimization mod] Disabling character physics
Last edited by Endoperez on Wed Dec 03, 2014 10:13 am, edited 1 time in total.
Re: [Optimizatin mod] Disabling character physics
If you look at aschar.as line 8468, you can see where it returns if "num_frames > 8", which means that it turns off procedural animation details if the character is at low animation LOD. If you want every character to have no procedural animation details, you could change that to if(true), or if(!this_mo.controlled) if you want only the player to have them.
Re: [Optimizatin mod] Disabling character physics
David wrote:If you look at aschar.as line 8468, you can see where it returns if "num_frames > 8", which means that it turns off procedural animation details if the character is at low animation LOD. If you want every character to have no procedural animation details, you could change that to if(true), or if(!this_mo.controlled) if you want only the player to have them.
Thanks a lot! That's quite simple to do but would've been quite hard to find.
Since it's so simple, I assume you don't need any help adding in an option for it, if you choose to do so?
Re: [Optimizatin mod] Disabling character physics
It is pretty easy, though it would be helpful to verify that it is in fact a bottleneck, and what systems it is causing problems on.
Re: [Optimizatin mod] Disabling character physics
Heh, true.
I'll get to this on Saturday as soon as I download OG, I'm so many updates behind it's probably faster to just download the full thing again.
I'll get to this on Saturday as soon as I download OG, I'm so many updates behind it's probably faster to just download the full thing again.
Re: [Optimizatin mod] Disabling character physics
The mod has been created and I uploaded it to this address:
http://ogmods.antonriehl.com/downloads. ... s_a208.zip
http://ogmods.antonriehl.com/downloads. ... s_a208.zip
Re: [Optimizatin mod] Disabling character physics
For the record... The improvements weren't noticeable. ![Sad :(](./images/smilies/icon_sad.gif)
![Sad :(](./images/smilies/icon_sad.gif)