I'm wondering what the pro's and con's of two ways of approaching updating and drawing are, or if it even makes a difference.
Right now I'm doing:
NMI sets a 'need to update' flag to TRUE for game logic to update -> MAIN updates game logic if flag is TRUE -> MAIN sets flag false when it's done updating -> NMI draws stuff and resets the flag to TRUE
But I'm curious if the following offers any benefits (outside of the first frame where NMI basically does nothing):
MAIN runs game logic and sets a 'draw' flag to TRUE when it's done -> NMI checks if game logic is ready to draw. If FALSE it does nothing and waits until the next frame, if TRUE it sets up rendering stuff and sets the flag false
Right now I'm doing:
NMI sets a 'need to update' flag to TRUE for game logic to update -> MAIN updates game logic if flag is TRUE -> MAIN sets flag false when it's done updating -> NMI draws stuff and resets the flag to TRUE
But I'm curious if the following offers any benefits (outside of the first frame where NMI basically does nothing):
MAIN runs game logic and sets a 'draw' flag to TRUE when it's done -> NMI checks if game logic is ready to draw. If FALSE it does nothing and waits until the next frame, if TRUE it sets up rendering stuff and sets the flag false