[=;369575]
You gave me some material to think about and I just tested a new method of retrieving camera frames, and from what I see here it boosted the performance by about 20 FPS.
I did so by completely throwing away the update events and therefore the scope locks
Now you retrieve the camera data by getting a pointer to a texture that is being updated directly from the sensor thread by enqueuing the texture update in the rendering thread.
The next step would be to broadcast an event from the rendering after which you would be able to access the data safely (this is similar to the OnHud event).
You can find it here (the body index frame is still using the old model, will update it later today).
[/]
Awesome.
This is might be scary for some but in my opinion is much more understandable. we can in this way get read of the middle texture too. Just amazing