I want to structure my program as shown in the first two images, but I don't know how to get make two game loops happening simultaneously. The arrows show the flow of data.
** I figured that having the engine processing everything from the system in the background, it would make my game run much more smoothly as well as open memory for my game to function since everything coming from the system already be handled.
The game loop would be a normal game loop and the game would only interact with the handlers.
The handlers would take everything from the engine and make it a more easily accessible version. The only handler I know of that needs interact with the engine be graphics, so it be its own circle.
The second loop is the engine, which i want to be processing everything from the system in the background while my game be running. It would have a win32_platform class--the "circle"--that processes everything from the system and everything leaving the engine is in a platform_external class--the tall ellipse
I want to avoid multithreading since I read somewhere that multi-threading is slower than hardcoding a game engine.