Perform poll(0) in a loop
Temporary workaround for https://github.com/nim-lang/Nim/issues/6523
This commit is contained in:
parent
1b47dac4e9
commit
d2b86a2b94
1 changed files with 2 additions and 1 deletions
|
|
@ -817,7 +817,8 @@ proc godot_nativescript_frame() {.cdecl, exportc, dynlib.} =
|
|||
setStackBottom((void*)(&`stackBottom`));
|
||||
""".}
|
||||
if asyncdispatch.hasPendingOperations():
|
||||
poll(0)
|
||||
for i in 1..10:
|
||||
poll(0)
|
||||
GC_step(nimGcStepLengthUs, true, 0)
|
||||
|
||||
when not defined(release):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue