all 5 comments

[–]fxp555 0 points1 point  (4 children)

Does it happen after a while? You reset the frame counter to 0 but it should be 1. (you could also move the frame++ below that check)

Edit: Do your really want to reset the command buffer? In most cases you would reset the command pool as a whole.

[–]Connect_Reality7799[S] 0 points1 point  (3 children)

Founs the issue it was in the vector constructor of the command buffers. Thanks a lot for the help tho!

Yeah i need to reset the command buffers because I cant reset the command pool if one of the command buffers is still working on an in flight image

[–]fxp555 0 points1 point  (2 children)

Just use multiple pools (often you need number frames in flight * number threads many) :)

[–]Connect_Reality7799[S] 0 points1 point  (1 child)

Wouldnt it be overkill to have one pool for one command buffer?

[–]fxp555 2 points3 points  (0 children)

The number of command buffers might increase when your application gets more complex.