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"

Timer rate faster than should be

I haven't done a deploy so I wouldn't know for release, but in editor when I'm testing, my timers are always going 2-3 times faster than real time (ie: 6 second timers are going off after like 2-3 seconds). Global time dilation and time dilation on the actor I call the timer in is both 1.0, the default. Why could this be happening?

Product Version: UE 4.9
more ▼

asked Oct 12 '15 at 03:02 PM in C++ Programming

avatar image

122 13 19 30

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

1 answer: sort voted first

I've narrowed down the problem on this:

alt text

VSync is off in this picture. Despite this, 'Frame' says 16.67 ms. DeltaTime reflects this. But I'm still getting a frametime of 4.43 ms. So, DeltaTime seems to be precalculating based on the value of 'Frame', but the actual framerate is much faster than that. This results in my game getting sped up 3 fold. Turning VSync on fixes this (not sure if it would break if I got under 60 fps with VSync on).

Simple way to reproduce this:

  1. Create a blank project

  2. Create a timer

  3. Print the remaining time to screen with AddOnScreenDebugMessage

  4. Switch VSync on and off while running the game. You will see the remaining time rate decrease much faster than it should with VSync off

Can anyone else confirm this is happening as well?

time.png (169.6 kB)
more ▼

answered Oct 18 '15 at 05:24 PM

avatar image

122 13 19 30

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
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