lovr-docs icon indicating copy to clipboard operation
lovr-docs copied to clipboard

Optimization Guide

Open bjornbytes opened this issue 11 months ago • 1 comments

Add an Optimization guide that goes over common optimization wisdom. It would probably include lots of graphics stuff like CPU vs. GPU bottlenecks, fillrate/overdraw, vertex vs. pixel shading, texture sampling, culling, etc. It could talk about tooling and different ways to measure performance (sampling profilers, tracy, LuaJIT's profiler, GPU perf counters, NSight). It could mention Lua garbage collection, JIT compilation, and Lua <-> C caveats.

Would this be too broad? It probably wouldn't be related to LÖVR really and is more like "how to optimize a VR video game that uses Lua" guide, but that's useful to people using LÖVR.

bjornbytes avatar Jan 29 '25 08:01 bjornbytes

Brought up in chat: you can configure LuaJIT to get better traces, OpenResty does this:

https://github.com/openresty/luajit2#updated-jit-default-parameters

bjornbytes avatar Jan 29 '25 08:01 bjornbytes