beehive-lab / TornadoVM-Ray-Tracer

A real-time ray tracer in Java, accelerated on heterogeneous hardware using TornadoVM
Apache License 2.0
12 stars 1 forks source link

Lock objects in device memory #3

Closed gigiblender closed 2 years ago

gigiblender commented 2 years ago

This PR locks objects in the device memory.

It also executes the UI and the rendering on the same thread. This is because switching the device in the UI would cause a race with the TaskSchedule running on the previous device on the renderer thread.