From 920d89b10047ac691ece1f57132cacdee8e451a7 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Mon, 11 Sep 2023 10:27:20 -0600 Subject: [PATCH] more loads per frame when scavenge was done --- haxe_libraries/hollywoo.hxml | 6 +++--- src/hollywoo_flixel/FlxDirector.kiss | 6 ++++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/haxe_libraries/hollywoo.hxml b/haxe_libraries/hollywoo.hxml index 693ca6e..f26f93e 100644 --- a/haxe_libraries/hollywoo.hxml +++ b/haxe_libraries/hollywoo.hxml @@ -1,6 +1,6 @@ -# @install: lix --silent download "gh://github.com/kiss-lang/hollywoo#92601ae5f170464c28d940005052bc5d9f41a247" into hollywoo/0.0.0/github/92601ae5f170464c28d940005052bc5d9f41a247 -# @run: haxelib run-dir hollywoo "${HAXE_LIBCACHE}/hollywoo/0.0.0/github/92601ae5f170464c28d940005052bc5d9f41a247" +# @install: lix --silent download "gh://github.com/kiss-lang/hollywoo#af1aee09fa06a83363be5bb8444887f7f04f0b98" into hollywoo/0.0.0/github/af1aee09fa06a83363be5bb8444887f7f04f0b98 +# @run: haxelib run-dir hollywoo "${HAXE_LIBCACHE}/hollywoo/0.0.0/github/af1aee09fa06a83363be5bb8444887f7f04f0b98" -lib kiss -lib kiss-tools --cp ${HAXE_LIBCACHE}/hollywoo/0.0.0/github/92601ae5f170464c28d940005052bc5d9f41a247/src/ +-cp ${HAXE_LIBCACHE}/hollywoo/0.0.0/github/af1aee09fa06a83363be5bb8444887f7f04f0b98/src/ -D hollywoo=0.0.0 \ No newline at end of file diff --git a/src/hollywoo_flixel/FlxDirector.kiss b/src/hollywoo_flixel/FlxDirector.kiss index f4e61af..22ce575 100644 --- a/src/hollywoo_flixel/FlxDirector.kiss +++ b/src/hollywoo_flixel/FlxDirector.kiss @@ -532,7 +532,9 @@ (cc)) (prop &mut :Bool isLoading false) -(method :Void doLoading [:ArrayVoid> _load :Continuation cc] +(var LOAD_CALLS_PER_FRAME 2) +(var LOAD_CALLS_PER_FRAME_SCAVENGE 20) +(method :Void doLoading [:ArrayVoid> _load :Bool scavenged :Continuation cc] (set isLoading true) (set FlxG.autoPause false) (set FlxG.mouse.visible false) @@ -554,7 +556,7 @@ (FlxG.state.remove bar true) (print (/ (/ flash.system.System.totalMemory 1024) 1000) "Memory in use: ") (cc) - }) 1)] + }) (if scavenged LOAD_CALLS_PER_FRAME_SCAVENGE LOAD_CALLS_PER_FRAME))] (haxe.Timer.delay ->:Void (loop.start) 1) // (set bar.cameras [flxMovie.uiCamera]) (bar.createColoredEmptyBar FlxColor.BLACK true FlxColor.WHITE)