tuttlem / phony

Bootstrap code for game applications
1 stars 0 forks source link

System error state #4

Closed tuttlem closed 10 years ago

tuttlem commented 10 years ago

Do some more investigation on error handling (and the performance implications) to add some more error handling into the game kernel.

Game states need a way to cleanly set "next()" to an errored state.

The state manager needs to be able to handle errored state on another thread.

The game kernel needs to be able to handle segfaults, c++ exceptions, etc.

tuttlem commented 10 years ago

System error state has been added into the source tree now. It's the default place to go when an init() or teardown() fails. To afraid to integrate exception handling directly in the game loop for fear that it will destroy and performance.