more loads per frame when scavenge was done

This commit is contained in:
2023-09-11 10:27:20 -06:00
parent 6668183a59
commit 920d89b100
2 changed files with 7 additions and 5 deletions

View File

@@ -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

View File

@@ -532,7 +532,9 @@
(cc))
(prop &mut :Bool isLoading false)
(method :Void doLoading [:Array<Void->Void> _load :Continuation cc]
(var LOAD_CALLS_PER_FRAME 2)
(var LOAD_CALLS_PER_FRAME_SCAVENGE 20)
(method :Void doLoading [:Array<Void->Void> _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)