You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code appears to have a logical error, as it creates and deletes a new Walnut::Application object in each iteration of the while loop. This means that the application is constantly being restarted and terminated, which is probably not the intended behavior. A more reasonable approach would be to create the application object once before the loop, and delete it once after the loop, like this:
g_ApplicationRunning is set to false when exiting the window.
An educated guess would be that this loop is here to facilitate easy application restarts, when e.g. changing to fullscreen or whatnot.
In EntryPoint.h,
Walnut/Walnut/src/Walnut/EntryPoint.h
Lines 10 to 20 in 3b8e414
This code appears to have a logical error, as it creates and deletes a new
Walnut::Application
object in each iteration of the while loop. This means that the application is constantly being restarted and terminated, which is probably not the intended behavior. A more reasonable approach would be to create the application object once before the loop, and delete it once after the loop, like this:Please correct me if I'm mistaken here, Or maybe there's a good reason for it, I'm very new to this project.
The text was updated successfully, but these errors were encountered: