rm push/pop
This commit is contained in:
6
core.cm
6
core.cm
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user