Originally Posted By: jumpman
Is it really worth it to put the whole game loop into main? Is having separate actions/whiles that bad?
Don't take example in my first post too serious, I just wanted to prototype something and faced this prob (cause I'm dumb grin ). In my projects, I usually use 'event_frame' instead of while loops, for entities, props etc (thanks to MasterQ32). Then one while loop inside of player's action (player's movement, weapons etc), and one loop inside of main function for all gui, shader pipeline etc. I think it's better to avoid using loops, if possible. I remember having performance issues when I used while loop for each NPC etc.

Best regards!


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung