|
@@ -78,7 +78,7 @@ func is_ready(path):
|
|
func _wait_for_resource(res, path):
|
|
func _wait_for_resource(res, path):
|
|
_unlock("wait_for_resource")
|
|
_unlock("wait_for_resource")
|
|
while true:
|
|
while true:
|
|
- VS.flush()
|
|
|
|
|
|
+ VisualServer.sync()
|
|
OS.delay_usec(16000) # wait 1 frame
|
|
OS.delay_usec(16000) # wait 1 frame
|
|
_lock("wait_for_resource")
|
|
_lock("wait_for_resource")
|
|
if queue.size() == 0 || queue[0] != res:
|
|
if queue.size() == 0 || queue[0] != res:
|