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"

UMG lag / slow response time

(I posted this over on the forums too, but seems like here might be a better place.)

The user-friendliness of any UI relies on good response times to user input. I'm currently experiencing crazy lag with even the most basic setups in UMG.

To test this out in a very simple abstract form, I've created two things in UMG: a button and an image (currently just a white box):

alt text

I want this box to be invisible, and appear only when the mouse is hovering on the button, disappearing when the mouse is no longer hovering over the button. Here is the basic BP setup:

alt text

Here is the Level Blueprint, simply adding the widget and enabling all necessary mouse actions:

alt text

In both PIE and packaged builds there is a lag of around half a second between mousing over the button and the box appearing/disappearing. Half a second may not sound like much, but it's very noticeable. It makes the UI feel clunky.

It seems to me that I'm asking for something very basic here – on a website, it's very simple to code a button that responds instantly to mouse over events – and yet it's laggy as hell.

Anyone else have this problem?

I don't have the fastest computer in the world, but it is a Macbook Pro (late 2011) with 16GB ram and a 2.5Ghz i7, so I don't see how something so simple could be lagging because of my machine.

Any help getting such interactions to be quick/instantaneous would be much appreciated!

Product Version: UE 4.11
Tags:
more ▼

asked Apr 13 '16 at 11:26 AM in Blueprint Scripting

avatar image

localstarlight
63 15 22 28

avatar image Blue669 Apr 14 '16 at 10:02 PM

A few players have reported the same issue. One of them has the same graphics card as I do, so I assume it is not hardware related.

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

1 answer: sort voted first

I assume this is some sort of tool tip behavior, else wise this doesn't make sense. Did you try alternative ways of getting this outcome? Using Set Visibility rather than Opacity?

I can't see how you're firing those OnHovered custom events. Buttons typically have Clicked, Pressed and Released events. If you are firing those checks every frame, you may want to look into Is Hovered instead. If you are experiencing lag - I would suggest not doing this on every Tick.

In my experience UMG is very responsive. I would suggest that the problem might be with your approach. Even something as silly as this works without lag on my system, give it a try:alt text

Again, I don't recommend doing this but it may help us narrow down to where your problem really lies. I doubt it's hardware.

capture.png (126.0 kB)
more ▼

answered Apr 15 '16 at 01:28 PM

avatar image

Nick Jackson
492 16 14 107

(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