brendan-duncan / webgpu_inspector

Inspection debugger for WebGPU
MIT License
142 stars 3 forks source link

Improve Large Buffer Views #6

Closed Twinklebear closed 2 months ago

Twinklebear commented 2 months ago

Reminder issue from #5 , when viewing large buffers in https://github.com/Twinklebear/webgpu-marching-cubes , the tab will hang as the data is drawn and gets slow with so many elements on the page. Some basic pagination should help improve the performance here, and it'd be awesome to have some search/filtering support or jump to index support to more easily navigate large buffers in the inspector.

brendan-duncan commented 2 months ago

I started playing around with filtering large buffer views to not kill the html panel. If there are more than 100 elements in a buffer array, then it limits the view to a set count with an offset. You can use the offset scrollbar to scrub through the buffer data and it updates pretty interactively.

image

Twinklebear commented 2 months ago

This looks great!

brendan-duncan commented 2 months ago

I styled it a little bit more, and will submit a chrome store update. It usually takes a day or two for the chrome store to update a new version.

Twinklebear commented 2 months ago

Awesome, than you!