Lili Zoey
Lili Zoey
probably yeah, i havent thought about it a lot so idk the feasibility of doing so.
I'll update the issue to reflect some of these comments. 1. `Deref`/`DerefMut`, that makes sense. I think `From` would be good to have even with a `from_vec` constructor because you...
i think we need to change this: ```rs // For float/double inference, see: // * https://github.com/godotengine/godot-proposals/issues/892 // * https://github.com/godotengine/godot-cpp/pull/728 #[cfg(feature = "double-precision")] let build_config = "double_64"; // TODO infer this...
yea probably, we can likely use https://doc.rust-lang.org/reference/conditional-compilation.html#target_pointer_width this cfg flag to decide between which representation to use
caching `StringName`s in function calls can have a significant improvement. running these functions 1 million times (in a `std::hint::black_box(..)` call): ```rs fn generate_string_name() { let foo = StringName::from("foo"); } fn...
Manually writing an implementation of `StringName::length` where i cache: `__method_name` only, `__call_fn` only, and both, then running each function 1 million times with black_box in release mode, i get: |...
It is probably possible to make signals into futures. allowing us to do `self.signal().await` in rust too. this could probably be done before we implement coroutines as async methods too,...
i still kinda feel like it'd be better to just have two separate `Gd`s. One that is only meant to be used on the main thread and one that is...
Just gonna summarize general thread safety issues for the various types. When we focus more on thread safety, we'll likely need to split all the thread unsafe types in two...
One thing we could do is have a `Gd` type with `Box`-like semantics, similar to gdnative's `Unique` typestate. Though a different type entirely instead of typestates may be more appropriate....