vE5li / korangar

A next-gen Ragnarok Online client
MIT License
147 stars 33 forks source link

Use a compute shader to select the picker value. #99

Closed hasenbanck closed 4 weeks ago

hasenbanck commented 4 weeks ago

I noticed that the copy of the picker texture to the buffer took 1/3 of the whole frame time:

grafik

I re-wrote the picker value selection to select the value via a compute shader, which in turn takes only around 10 μs.

The reading is around 13,000 times faster now (for a 4k picker buffer on a 4080).