Skip to content

Conversation

tonihele
Copy link
Contributor

Heh, I had this sitting locally for some time. Might as well turn it in.

Basically it is cleanup. Changed loops to modern for each loops. Avoids some unnecessary string concatenations and other unnecessary operations especially when trying to get the depths. And changes the toArray calls to faster one (https://shipilev.net/blog/2016/arrays-wisdom-ancients/).

In all the data handled is so minuscule that I doubt there is anything noticeable in performance. But code might be a bit more readable with less nesting and using DisplayMode.BIT_DEPTH_MULTI instead of magically discarding "-1" from the depths...

@stephengold stephengold added this to the Future Release milestone Aug 17, 2022
@tonihele tonihele merged commit e2ded65 into jMonkeyEngine:master Nov 5, 2022
@tonihele tonihele deleted the settings-dialog branch November 5, 2022 17:15
@Ali-RS Ali-RS modified the milestones: Future Release, v3.6.0 Dec 31, 2022
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

Successfully merging this pull request may close these issues.

4 participants