[Optimization mod] Disabling character physics

Post Reply
User avatar
Endoperez
Posts: 5668
Joined: Sun Jan 11, 2009 7:41 am
Location: cold and dark and lovely Finland

[Optimization mod] Disabling character physics

Post by Endoperez » Thu Nov 27, 2014 1:07 pm

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.
Last edited by Endoperez on Wed Dec 03, 2014 10:13 am, edited 1 time in total.

David
Project Leader
Posts: 1995
Joined: Wed Nov 19, 2003 10:45 pm
Contact:

Re: [Optimizatin mod] Disabling character physics

Post by David » Thu Nov 27, 2014 2:51 pm

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.

User avatar
Endoperez
Posts: 5668
Joined: Sun Jan 11, 2009 7:41 am
Location: cold and dark and lovely Finland

Re: [Optimizatin mod] Disabling character physics

Post by Endoperez » Thu Nov 27, 2014 3:16 pm

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?

David
Project Leader
Posts: 1995
Joined: Wed Nov 19, 2003 10:45 pm
Contact:

Re: [Optimizatin mod] Disabling character physics

Post by David » Fri Nov 28, 2014 5:17 pm

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.

User avatar
Endoperez
Posts: 5668
Joined: Sun Jan 11, 2009 7:41 am
Location: cold and dark and lovely Finland

Re: [Optimizatin mod] Disabling character physics

Post by Endoperez » Fri Nov 28, 2014 5:37 pm

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.

User avatar
Endoperez
Posts: 5668
Joined: Sun Jan 11, 2009 7:41 am
Location: cold and dark and lovely Finland

Re: [Optimizatin mod] Disabling character physics

Post by Endoperez » Sun Nov 30, 2014 1:50 pm

The mod has been created and I uploaded it to this address:

http://ogmods.antonriehl.com/downloads. ... s_a208.zip

User avatar
Endoperez
Posts: 5668
Joined: Sun Jan 11, 2009 7:41 am
Location: cold and dark and lovely Finland

Re: [Optimizatin mod] Disabling character physics

Post by Endoperez » Wed Dec 03, 2014 3:58 am

For the record... The improvements weren't noticeable. :(

Post Reply