rm push/pop

This commit is contained in:
2026-02-26 08:13:27 -06:00
parent ef7e3e6449
commit ce6b0ddb3a
31 changed files with 251 additions and 255 deletions

View File

@@ -108,7 +108,7 @@ function fps_add_sample(sample) {
var n = length(_fps_samples)
var old = null
if (n < _fps_sample_count) {
push(_fps_samples, sample)
_fps_samples[] = sample
_fps_sample_sum += sample
} else {
old = _fps_samples[_fps_sample_pos]
@@ -228,7 +228,7 @@ function _main_loop() {
// Handle both compositor result ({commands: [...]}) and fx_graph (graph object)
if (render_result.commands) {
if (_config.imgui || _config.editor) {
push(render_result.commands, {
render_result.commands[] = {
cmd: 'imgui',
draw: function(ui) {
if (_config.imgui) _config.imgui(ui)
@@ -238,7 +238,7 @@ function _main_loop() {
}
},
target: 'screen'
})
}
}
// Compositor result - execute commands directly
_backend.execute_commands(render_result.commands, win_size, dbg)