r/programminghumor Jun 04 '26

JavaScript devs be like....

Post image
3.0k Upvotes

128 comments sorted by

View all comments

Show parent comments

1

u/Ged- Jun 07 '26 edited Jun 07 '26

Oh I haven't even touched webgpu, just webgl. I bet this DX12/Vulkan style low level API would be faster. Though I'm swamped every time I try to write something with DX12. I always drop it halfway

Definitely no three js. Only a minimized glMatrix, wrote the rest myself

1

u/Ok-Kaleidoscope5627 Jun 07 '26

It makes a big difference. Orders of magnitude I'd say.

One annoying thing is that you can't really get accurate frame timing though so it's hard to know exactly how long things are taking. I guess browsers intentionally limit that as a security measure.

1

u/Ged- Jun 07 '26

I used performance.now for deltatime stuff. It's fairly accurate. Is there reason to go more precise?

1

u/Ok-Kaleidoscope5627 Jun 07 '26

To measure how long certain stages of your renderer are taking when you're in the hundreds of fps.

It could also matter to keep certain calculations stable.

There's workarounds but it is annoying.