Construct-bugs icon indicating copy to clipboard operation
Construct-bugs copied to clipboard

moving instance downward with arrow key slowdown

Open F3der1co opened this issue 1 year ago • 5 comments

Problem description

When moving an instance downward using the arrow keys the editor lags. Moving it to the right, left or up doesn't cause that issue.

Attach a .c3p

movingDownInstanceBar.zip

Steps to reproduce

  1. make sure instance bar is visible (instance bar makes lag it worse, but it doesn't seem to be the real cause)
  2. select an instance
  3. hold the down arrow key

Observed result

editor lags

Expected result

editor stays smooth (like when pressing any of the other directions

More details

IMPORTANT: while in this case the problem gets worse when the instance bar is open, in my main project the problem also happens when the instance bar is closed. It's so odd that it only happens with down bur normal mouse dragging or other arrow directions work smoothly. So to me it seems like down iterates through many instances, maybe all layouts.

Affected browsers/platforms:

First affected release:

System details

View details

PASTE HERE

F3der1co avatar Jul 30 '24 07:07 F3der1co

I can't reproduce this in the example project. The four directions use the same code, so if anything is wrong, all of them should be doing the same thing.

Maybe a more complex project?

If anything could be slowing down is in the case of having a complex hierarchy (many levels deep) which in turn is a template and itself has a lot of replicas. Then moving some part of the template might be slow when it tries to update the corresponding part of all the replicas. That's just a guess though.

I though this might be related to #8067, but that one only affects relatively deep hierarchies.

DiegoScirra avatar Aug 19 '24 18:08 DiegoScirra

There is no hierarchy in this repro. here you can visually see the slowdown (its smooth in all direction except down), it also shows up in the chrome performance profiler. (the mouse movement is just me showing which direction I am going to press) Really weird that it does not reproduce for you. I'll ask around or try on other devices to see if it only happens for me.

https://github.com/user-attachments/assets/1a2f7065-1ecf-48e4-8eaf-aeff2ee017d2

F3der1co avatar Aug 19 '24 18:08 F3der1co

It seems to only reproduce for me in chrom (I'm on 127.0.6533.120). Edge works fine. I tried resetting chrome but it didn't fix it. I'll investigate further

F3der1co avatar Aug 19 '24 20:08 F3der1co

Did you try resetting everything when you type chrome://flags/ in the address bar?

DiegoScirra avatar Aug 21 '24 17:08 DiegoScirra

I reset chrome flags as well and still have this issue. But I guess if it's just happens for me I understand that there isn't much you can do :/

F3der1co avatar Aug 29 '24 18:08 F3der1co

This issue has been marked 'can't reproduce' with no activity for well over a month, so closing.

AshleyScirra avatar Oct 28 '24 16:10 AshleyScirra