flush update
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit

This commit is contained in:
austin 2025-01-25 16:24:15 -05:00
parent c2523b21bf
commit 9dc6235e4a
3 changed files with 11 additions and 1 deletions

View File

@ -1305,6 +1305,10 @@ Properly differentiate local/world bone attach point calculation
Floating origin implementation for collision engine Floating origin implementation for collision engine
Improve initial asset loading performance Improve initial asset loading performance
PoseModel creation for basic shape types PoseModel creation for basic shape types
Procedural block item types
(01/25/2025)
Update flush method in tests to account for faster loading

View File

@ -16,6 +16,11 @@ public class EngineInit {
//The maximum number of frames to wait before failing the startup routine //The maximum number of frames to wait before failing the startup routine
public static final int MAX_FRAMES_TO_WAIT = 100; public static final int MAX_FRAMES_TO_WAIT = 100;
/**
* Max time in milliseconds to wait while flushing
*/
public static final int MAX_TIME_TO_WAIT = 3000;
/** /**
* Initializes the engine * Initializes the engine
*/ */

View File

@ -95,6 +95,7 @@ public class TestEngineUtils {
// //
//wait for client to be fully init'd //wait for client to be fully init'd
int frames = 0; int frames = 0;
long startTime = System.currentTimeMillis();
while(Globals.threadManager.isLoading()){ while(Globals.threadManager.isLoading()){
TestEngineUtils.simulateFrames(1); TestEngineUtils.simulateFrames(1);
try { try {
@ -103,7 +104,7 @@ public class TestEngineUtils {
e.printStackTrace(); e.printStackTrace();
} }
frames++; frames++;
if(frames > EngineInit.MAX_FRAMES_TO_WAIT){ if(frames > EngineInit.MAX_FRAMES_TO_WAIT && System.currentTimeMillis() - startTime > EngineInit.MAX_TIME_TO_WAIT){
String errorMessage = "Failed to setup connected test scene!\n" + String errorMessage = "Failed to setup connected test scene!\n" +
"Still running threads are:\n" "Still running threads are:\n"
; ;