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"

Setting the linear velocity of a rigid body in incredibly expensive

I'm setting the linear velocity of a rigid body, but when I do so my framerate drops in half.

Weirdly I can set the linear velocity of several and the effect is only really as bad as setting one.

Is there some re-initialisation that happens every time the linear velocity of something is set?

I don't have the problem with angular velocity as you can limit it per object with a one-time function call, but for linear I need to get, clamp and set per frame as there is no per-object setting (that I'm aware of) for the max linear velocity.

I'm putting this as a bug as I'd imagine that firing that function shouldn't have such a hit on framerate.

I'm running on PS4.

Product Version: UE 4.10
Tags:
more ▼

asked Dec 18 '15 at 10:14 AM in Bug Reports

avatar image

SIGage
74 5 9 14

avatar image Ben Halliday STAFF Dec 18 '15 at 02:30 PM

Hi SIGage,

Is this only happening on the PS4, or does it happen in the editor as well?

avatar image SIGage Dec 18 '15 at 02:58 PM

Just checked, happens in editor too, drops from ~400 to ~90

avatar image SIGage Dec 18 '15 at 03:04 PM

Interestingly it drops the framerate for around a second after the velocity is set, not just on the frame you set it

avatar image TJ V ♦♦ STAFF Dec 23 '15 at 08:21 PM

Hi SIGage,

I attempted to reproduce this but I couldn't get your results. I didn't experience a FPS drop. Could you post a screenshot or a test project showing how you are applying the velocity?

avatar image SIGage Dec 24 '15 at 02:49 AM

I'm out of the office until next year now. I managed to work around the problem to a degree but I'll try to get an isolated repro in a project when I get back

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

1 answer: sort voted first

Hey SIGage,

Thanks for the heads up. I'm going to resolve this issue for tracking purposes but once you get back in the office, just post a comment here to reopen the post.

Cheers,

TJ

more ▼

answered Dec 28 '15 at 01:55 PM

avatar image

TJ V ♦♦ STAFF
41k 1009 183 494

(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