Hi, so i wanted more fps in storms, in my pc it gets low, i gained 10 fps in storms by making the ship roll code to run every 10 ticks instead of normal.
NK file:
--------------------
int iframes;
void UpdateShipRoll()
{
ref rCharacter = GetMainCharacter();
if(Whr_IsStorm() && CheckAttribute(rCharacter,"Capsize") && GetCharacterShipClass(rCharacter) < 8)
{
if (iframes < 10)
{
iframes = iframes + 1;
return;
}
else
iframes = 1;
NK file:
--------------------
int iframes;
void UpdateShipRoll()
{
ref rCharacter = GetMainCharacter();
if(Whr_IsStorm() && CheckAttribute(rCharacter,"Capsize") && GetCharacterShipClass(rCharacter) < 8)
{
if (iframes < 10)
{
iframes = iframes + 1;
return;
}
else
iframes = 1;