Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / HUD slowing things down?

Author
Message
A dude
14
Years of Service
User Offline
Joined: 15th Mar 2010
Location: The Solar System
Posted: 9th Sep 2012 23:59
There is a problem with this script from HoriZon-Designs' sci-fi pack:


It was written for x10 and it works pretty fine (kinda) but for an unknown reason, the framerate drops gradually from the start of the game! It was okay for the first second (around 30 some FPS) but then gradually dropped to around 9 FPS! Even at its peak it was quite low (for a map that includes two default floor segments, a gun and lights, I should get around 90 FPS).
Any idea?
maho76
13
Years of Service
User Offline
Joined: 31st May 2011
Location: universe-hub, playing the flute
Posted: 10th Sep 2012 12:22
add ",state=1" into the last line so it changes state. if not, it rebuilds all the huds over and over again because it checks state=0 over and over again (if this is not part of the levelsetup.fpi at all).

beside this big huds may result in low framerate, also hud-loops through wrong written scripts cause this, and as far as i have seen also multiple used numeric HUDS collide with the internal text of testgames. if i remember right you can avoid this in not using a triggerzone but an always active nonstatic entity, using the script as mainscript.

maybe it helps you figuring out.

A dude
14
Years of Service
User Offline
Joined: 15th Mar 2010
Location: The Solar System
Posted: 16th Sep 2012 00:20 Edited at: 16th Sep 2012 00:21
Thanks a lot. Now it's as smooth as it can be.

Login to post a reply

Server time is: 2024-11-23 20:09:38
Your offset time is: 2024-11-23 20:09:38