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

Flexible canvas size gets slow when resizing window #39

Open
nataliawww opened this issue Dec 13, 2018 · 2 comments
Open

Flexible canvas size gets slow when resizing window #39

nataliawww opened this issue Dec 13, 2018 · 2 comments

Comments

@nataliawww
Copy link

If canvas size is set to fit the container, resizing the window makes the frame rate drop a lot, from ~60 to about 5 fps.

@aypie
Copy link

aypie commented May 17, 2020

I'm having exactly the same problem right now, GLSL canvas resizes without my input and it hurts the framerate because it changes size from 256x128 to Full HD whenever I resize the window, it's even worse on mobile.

@aypie
Copy link

aypie commented May 17, 2020

I have found a bruteforce method to fix that. There's no documentation so I can't say if my assumptions are correct, but Search for a resize function that returns boolean and it should check for canvas sizes and stuff like that, if you remove the checks and just set the function to always return false - then resizing won't happen.

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