Fix editor crash in multithreaded mode
This commit is contained in:
parent
e9d73d8ec4
commit
db4bb91765
2 changed files with 3 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
version = "0.7.18"
|
version = "0.7.19"
|
||||||
author = "Xored Software, Inc."
|
author = "Xored Software, Inc."
|
||||||
description = "Godot Engine bindings"
|
description = "Godot Engine bindings"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
|
|
||||||
|
|
@ -867,6 +867,7 @@ proc godot_gdnative_init(options: ptr GDNativeInitOptions) {.
|
||||||
|
|
||||||
proc godot_gdnative_terminate(options: ptr GDNativeTerminateOptions) {.
|
proc godot_gdnative_terminate(options: ptr GDNativeTerminateOptions) {.
|
||||||
cdecl, exportc, dynlib.} =
|
cdecl, exportc, dynlib.} =
|
||||||
|
if not options[].inEditor or not compileOption("threads"):
|
||||||
deallocHeap(runFinalizers = not options[].inEditor, allowGcAfterwards = false)
|
deallocHeap(runFinalizers = not options[].inEditor, allowGcAfterwards = false)
|
||||||
|
|
||||||
const nimGcStepLengthUs {.intdefine.} = 2000
|
const nimGcStepLengthUs {.intdefine.} = 2000
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue