-
Notifications
You must be signed in to change notification settings - Fork 34
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
Landergame #264
base: master
Are you sure you want to change the base?
Landergame #264
Conversation
@@ -308,6 +308,7 @@ void start_magnum_async() | |||
g_testApp.close_session(g_testApp.m_windowApp); | |||
|
|||
OSP_LOG_INFO("Closed Magnum Application"); | |||
std::exit(0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'm fairly certain we would want to keep the behavior of a "graceful" exit.
if that's not working, we should debug why and get it fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this was for debugging something. Will remove.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, if I remove it and close the window it doesn't stop the application. So I think exiting here is more expected behavior.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
closing the window isn't supposed to exit the application in the current code.
Arguably that's not really what most people want, but it's what the current code was intended to do.
src/testapp/scenarios.cpp
Outdated
auto const defaultPkg = rTestApp.m_defaultPkg; | ||
auto const application = rTestApp.m_application; | ||
auto & rTopData = rTestApp.m_topData; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: whitespace alignment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a little rough maintaining style without automation to do it.
For now while working on the PR I'll rely on automated formatting of my editor to not go insane. If needed I'll update formatting when this is somewhat ready.
Note that the newton dynamics physics engine is very likely to be replaced with Jolt in the very near future, and there's a big change about to be submitted for planet rendering / generation |
Is that merged already? Then I'll rebase. Might have some time today to continue working on this. |
not quite yet, but should be very soon. |
* Move the scenario (involved moving some things into dedicated files like magnum.*) * Rebase to main
Jolt physics PR was just merged, planet code change is likely to be merged in the next day or so. (That'll be CapitalAsterix to merge it, probably) |
Tracking my WIP progress on a lander game mode in the test app.