Rismosch / ris_engine

Barebones game engine. Home made passion project.
MIT License
2 stars 1 forks source link

output frame should happen in the same thread as logic frame #94

Closed Rismosch closed 6 months ago

Rismosch commented 6 months ago

from switching to ash, i just realized that using frames in flight, the cpu is not waiting for the gpu to end the drawing.

https://vulkan-tutorial.com/en/Drawing_a_triangle/Drawing/Frames_in_flight

this means, with the current design, there are at least 2 frames delay between user input and displaying the frame. this can be reduced to 1 if the job were to be removed.

0 frame delay can be achieved, by not using frames in flight, however it's questionably if this is practical, as that would waste cpu cycles.

Rismosch commented 6 months ago

this also makes the double buffer design of god state redundant, which removes a major headache.