OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: ponq on 07 Jun 2004, 10:57:43

Title: cpu strain
Post by: ponq on 07 Jun 2004, 10:57:43
I'm working on a MP mission for ofp 1.96.
Now some1 in the group of friends we play ofp with has a low-spec pc (p3 500mhz, gf2mx400, 256ddr).

That makes me wonder :
-What are the best ways to reduce cpu strain and/or gpu strain (he has already the lowest settings afaik)? Make scripts loop less? Or using less units / objects? I don't wanna go for the Desert Island, and I won't use Nogova cos of it's detail. Does using sounds/music hurt the cpu a lot?

-Related to the above, is it possible to reduce the viewdistance locally via scripts? Or do all the pc's need to have the same viewdistance in MP?
Title: Re:cpu strain
Post by: macguba on 07 Jun 2004, 11:49:23
I wrote this  (http://www.ofpec.com/editors/resource_view.php?id=512)especially for you.    8)

Read the Comments as well, there's some useful advice there.
Title: Re:cpu strain
Post by: ponq on 07 Jun 2004, 11:56:53
thanks for pointing to that tute for me. Strange I overlooked it ;)

I still have a question.

Would it be possible to use the "benchmark" score to determine the use of eg. chopperdustscripts per client?

like

in a dust script:

if benchmark < 5000: exit

and making sure it runs locally and not from the server? or would this still case a lot of lag/cpu strain since the script get's called in the first place?
Title: Re:cpu strain
Post by: Artak on 07 Jun 2004, 13:55:16
Yes, you can use the benchmark to determine a computers strength and then have scripts exit based on the result and it will save some resources from the client. How much depends on the script that's left unexecuted.

All clients don't need to have the same viewdistance. You can set it individually.

If you want to build a MP mission with tuned performance you need to think hard what needs to be run on server only and what on clients and then sync them together. It can be a lot of work and it's very easy to get mixed up in your own scripts when you're doing it.
Title: Re:cpu strain
Post by: ponq on 11 Jun 2004, 12:35:38
The basic question of my first post has been answered. So topic solved.
Quote
It can be a lot of work and it's very easy to get mixed up in your own scripts when you're doing it.

...and yes....I'm mixed up with my scripts now lol... will find a work around.

thnx