Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dragging mint.Window = massive lag (Windows 10) #48

Open
twilson90 opened this issue Apr 15, 2016 · 3 comments
Open

dragging mint.Window = massive lag (Windows 10) #48

twilson90 opened this issue Apr 15, 2016 · 3 comments

Comments

@twilson90
Copy link

It works fine if I target web, but if I target windows I get this:

capture

Interestingly, if I record it with ScreenToGif, it's much less stuttery and I get this:

animation

@twilson90
Copy link
Author

twilson90 commented Apr 16, 2016

I've fixed it. The problem arose from this bit of code :

 var label = new mint.Label(...);
ed_controls.add_item(label, 0, 8);
list.size(label, width, 100);

but if I changed it to :

 var label = new mint.Label(...);
layout.size(label, width, 100);
list.add_item(label, 0, 8);

It now works. There's still an underlying bit of weirdness happening underneath which I don't understand, but it should be addressed.
This only happens for the cpp build.

@twilson90
Copy link
Author

twilson90 commented May 2, 2016

Scratch that last comment.
I still have this problem with windows if they're heavily populated.
I've attached a hxScout telemetry file.

laggy window.zip

@ruby0x1
Copy link
Member

ruby0x1 commented May 12, 2016

Just curious if you're testing in debug or release when you're seeing this? In debug it will definitely be far more pronounced. The layouts aren't optimized or anything they're doing the most obvious stuff right now, so if you had a whole bunch of them updating when the window moves, it's possible that they're triggering themselves more than once or other things. I'll look into it but the idea is to implement the constraint system, margins is a simpler convenience in the mean time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants