x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Change Server tickrate when empty

Hello,

I try to reduce Server cpu cost by lowering the tickrate, if no player is logged in. So far I know the config setting:

 [/Script/OnlineSubsystemUtils.IpNetDriver]
  NetServerMaxTickRate=30.0

 [/Script/Engine.Engine]
 SmoothedFrameRateRange=(LowerBound=(Type=Inclusive,Value=30.000000),
                               UpperBound=(Type=Exclusive,Value=60.000000))

I don't know how to change them at runtime. Any help would be much appreciated.

Product Version: UE 4.17
Tags:
more ▼

asked Feb 26 '18 at 11:35 AM in C++ Programming

avatar image

Maxxomatik
68 7 7 10

avatar image Muzaheed Apr 28 '18 at 06:25 AM

were u able to found a solution?

avatar image Maxxomatik Apr 29 '18 at 10:33 AM

Not directly. I use a method to reduce server performance as much as possible. I make sure to inactivate all things on the server that cost on tick (collision, physics, movement, skeletal mesh updates,...) that are not replicated to any client at the moment. I use a simple Observer, that registers the player controller with the actor on client begin play which activates the actor. On Clients EndPlay I unregister the controller with the actor. In Case the actor is not watched by any controller it deactivates the costly stuff. If everything is handled like that the server will tick at your max tick rate and not use 100% CPU, which was my goal.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question