mgpuSetLogLevel function

void mgpuSetLogLevel(
  1. int level
)

Minimum native log verbosity (0=DEBUG 1=INFO 2=WARN 3=ERROR, -1 silences all). The wasm default is INFO, which narrates ~7 buffer ops per encoded frame straight onto the browser console via stderr printChar. Callable only once the module is loaded — MinigpuWeb stages the level and applies it right after ensureMinigpuModuleLoaded, before context init, so even the adapter/device bring-up logs honor it.

Implementation

void mgpuSetLogLevel(int level) => _mgpuSetLogLevelJs(level.toJS);