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"

RInterpTo different results when packaged

Hi there, I have encountered a strange result whilst using RInterpTo. I've provided a screenshot of the setup I have, although it's really just a slight alteration of the BP Input Content Example project. alt text

What I'm experiencing is that the amount of rotation is essentially doubled when the project is packaged when compared to running it in the editor.

I've debugged some values which seem useful, so the total rotation when run in the editor on the z-axis is either -16 to 16 degrees when the ship moves either -2000 to 2000 units.

However when the project is packaged the z-axis rotation is -30 to 30 degrees and the ship is still only moving between either -2000 to 2000 units. The - to + value is simply accounting for moving left to right and you start centred on the screen at 0.

This seems very strange as I'm using the same setup as the Epic provided example (The same issue occurs in the Example content if the values are exaggerated) and the calculations are using Delta Seconds so should be frame rate independent etc.

This seems more like a bug with RInterpTo.

Really interested to see what could be causing this.

Product Version: UE 4.13
Tags:
rinterp.png (326.7 kB)
more ▼

asked Oct 05 '16 at 05:08 PM in Bug Reports

avatar image

Strigifo
23 1 4

avatar image Rudy Q ♦♦ STAFF Oct 05 '16 at 07:42 PM

Hello Strigifo,

I have a few questions for you that will help narrow down what issue it is that you are experiencing.

Quick questions:

  1. Can you reproduce this issue in a clean project?

  2. If so, could you provide a detailed list of steps to reproduce this issue on our end?

  3. Could you provide any additional screen shots of blueprints that may be involved with this issue?

avatar image Strigifo Oct 05 '16 at 08:29 PM

Hi Rudy, thanks for the quick response. Happy to try and help narrow this down.

  1. Yes I just made a new project and I get exactly the same behaviour.

  2. The only thing I need to do to test the effects are to attach a print to screen node after the setActorRotation. And print the relevant axis of from GetActorRotation. Then if you play in the editor you get one set of rotation values. If you package the project and play, you should expect a different set of printed values, in my case it's roughly double. I'm packing to Windows x64.

  3. The new project I made for the clean test is relatively small, I was hoping you wouldn't mind downloading it and taking a look, that way you can see all of my Blueprints, there is not very much there and definitely nothing fancy or hard to debug to see that nothing strange should be happening.

The link is here for the project: https://drive.google.com/drive/folders/0BzL0m5Dhv_4LVXVKRzdxQVZ0NEE?usp=sharing

Hopefully this will be useful.

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

Hello Strigifo,

After further testing it appears that this is working as intended. In parts of your setup (get direction for example) you are multiplying by delta seconds. This means that the editor which usually runs at ~120 fps (unless changed in the project settings) will be around twice as fast as a packaged game (packaged game is capped to ~60 fps). Delta time is the amount of time in between frames. This means that if you have half as many frames that your delta time will be twice as much. I hope that this information helps

Make it a great day

more ▼

answered Oct 06 '16 at 07:24 PM

avatar image

Rudy Q ♦♦ STAFF
47.5k 545 132 522

avatar image Strigifo Oct 06 '16 at 07:44 PM

Thanks a lot for your quick replies. I am a little confused now though and I hope you don't mind trying to explain something to me.

I thought that using Delta Seconds was meant to help make things frame rate independent.

I'm going to make up some random numbers here to try and help explain my understanding:

I thought the higher the fps, the lower the value returned by Delta seconds was, so at 120fps it will return 2.5f at 60fps it will return 5f and so on.... Therefor meaning that things like rotation and movement will end up at roughly the same value regardless of the the frame rate.

I'd be really grateful if you could shed some light on my misunderstanding.

Thanks again.

(comments are locked)
10|2000 characters needed characters left

I have the same Problem.

When i Play from the BluePrint Editor, the game starts to be a bit Laggy and the Player Movement is roughly the Half, as if i click "play" from the Standart Viewport. So different Viewports, make different things...

So for example: Ive setted up a Player Move on Z with a Value of 30. Clicking on "Play" from the BP Editor and Playing from the Player Blueprint, the Move is about the Half, as if i click "Play" from the Standart Viewport. Also the Game runs smoother and faster in the Standart Viewport.

Also when the Game is Packed for Win-64bit, the same results as if i would play from the BluePrint Editor. :-(

more ▼

answered Oct 06 '16 at 12:44 PM

avatar image

Gazu
1 1 1

(comments are locked)
10|2000 characters needed characters left
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