plunderludics / unity-hawk

12 stars 0 forks source link

Built-in solution for frame-perfect sync between texture and lua calls #9

Open iatenothingbutriceforthreedays opened 2 weeks ago

iatenothingbutriceforthreedays commented 2 weeks ago

Seems that lua rpc calls sometimes arrive a few frames earlier than texture, which means two are slightly out of sync. Possible to fix this by saving the output of the lua calls in a buffer for a few frames and then syncing to the frame index that comes with the texture. Would be nice to have this as a built-in option