gdext.internal

package gdext.internal

Members list

Type members

Classlikes

object Addr

Pointers as plain Long addresses. Scala Native heap-allocates a box for a Ptr passed to (or returned from) a method that is not inlined, so the hot path hands addresses across such calls and rebuilds the Ptr locally.

Pointers as plain Long addresses. Scala Native heap-allocates a box for a Ptr passed to (or returned from) a method that is not inlined, so the hot path hands addresses across such calls and rebuilds the Ptr locally.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Addr.type
object Gc

Control over the Scala Native garbage collector (Boehm, stop-the-world, single-threaded — the GC the sbt plugin always configures).

Control over the Scala Native garbage collector (Boehm, stop-the-world, single-threaded — the GC the sbt plugin always configures).

Engine objects never depend on the GC: their lifetimes follow Godot (scene tree, free(), owned RefCounted references), so collecting, pausing or resuming the GC never frees a Godot object. What the GC reclaims is plain Scala heap: wrappers, closures, strings, collections, math values.

Typical game use: Gc.collect() at a loading screen or level transition, and Gc.paused { ... } around a short burst that must not stutter. Reached as gdext.api.Gc.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Gc.type