-
Notifications
You must be signed in to change notification settings - Fork 37
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
NoClear() extension: NPE when program window is minimised #1
Comments
Some thoughts (probably more for my benefit!)
The program crashes if
even the following does not fail even though arguments of 0 were probably not intended.
but unsurprisingly kotlin Random() fails with this invocation.
So some consideration must be taken with the usage of |
@CodeCox you bring up some interesting points, some of which I have run into myself. Most of these are issues for OPENRNDR so we should move to conversation there at some point. Currently a RenderTarget should be at least 1x1 pixels (although I think there is a minimum OpenGL texture size of 16x16). Question is if a The fullscreen configuration should be reconsidered, instead of a boolean option it could use sealed classes and have clear |
NoClear() Extension : fixes NPE Issue #1
It's a non-trivial question - needs to be dissected further (apologies for the digression )
The draw() loop going full blast as it does now is great for some situations e.g time critical visualisations, livefeeds, etc. But it is also a huge drain on resources. In many cases this over-consumption is unnecessary.The framework could do with 'throttle' and 'brake' features but it would have to be configurable (with recommended defaults). |
OS:Windows 10
Program: NoClear.kt
Here's the exception log. The first two lines are from my debug println's. It shows the change in the default window co-ordinates when it is minimised:
It fails on this line because width/height is 0
I'll submit a PR to fix this NPE. (However, width & height
contraints
still needs to be considered for the whole application!)The text was updated successfully, but these errors were encountered: