branchrust_reboot/main/hackweek_unsafescriptingaccesscancel

25 Commits over 0 Days - Infinitycph!

9 Days Ago
Bugfix: grab latest binaries for Rust.Native One of them was stale, breaking the feature Tests: booted into craggy on windows - no more exception
9 Days Ago
Merge: from main
13 Days Ago
Update: grab binaries from the merged PR - addesses review feedback, functionality is same Tests: ran unit tests on Win
13 Days Ago
Update: mark UseMultithreadedScripting explicitly defaulted to enabled It kept disabling it despite underlying var being enabled Tests: booted into craggy, looked at var state in console
13 Days Ago
Update: codegen Tests: none
13 Days Ago
Clean: unify style, add comments Tests: none, trivial changes
13 Days Ago
Clean: missed meta file deletion Tests: none, trivial change
13 Days Ago
Update: move UnsafeScriptingAccess to Facepunch.Unity - add unit tests - delete old TLStest and it's scene Tests: ran unit tests
13 Days Ago
Merge: from main
13 Days Ago
Update: re-enable the feature for clients as well - add editor only RustNative_Editor - rewrapped the code behind UNITY_ASSERTIONS Tests: built all flavors of Rust locally (win, linux, mac | client,server | debug,dev,release) and ran them, got passes everywhere
14 Days Ago
Bugfix: make sure we modify EnsureMainThread in release builds That check is always active Tests: booted TLS scene
14 Days Ago
Update: integrate TLSTest into client bootstrap and server boot routines - copied over linux rustnative.so, to be tested Temp measure to test standalone builds Tests: booted both bootstrap and craggy in win editor - saw output (disabled in client, enabled in server)
14 Days Ago
Merge: from main
14 Days Ago
Update: replacing with a remotely built dylib Surprisingly, it works Tests: ran TLS test scene
14 Days Ago
Update: add MacOS support for UnsafeScriptingAccess - using locally built debug dylib for now Need to figure out if remotely built dylib is going to work or not (didn't when I broke sig locally) Tests: using locally built dylib was able to run TLSTest setup
15 Days Ago
Update: consolidate OS specific calls to RustNative Still gotta build and test linux and mac, gonna do that tomorrow Tests: ran temp scene
15 Days Ago
Update: disable Unsafe.UseMultithreadedScripting on CLIENT - codegen Need to figure out how to better patch out the managed check when doing an IL2CPP build, will leave that for later Tests: tested booting test scene both in CLIENT(ran on main thread) and SERVER(ran on thread pool) modes
16 Days Ago
Merge: from main
16 Days Ago
Update: implement UnsafeScriptingAcccess.SwitchToMultithreading awaitable Works with ConVar.Unsafe.UseMultithreadedScripting to either keep task on main thread of offload it to thread pool Tests: TLSTest script, with covnar being in both states after system runs
17 Days Ago
Clean: do TLS search after assemblies loaded, not after domain reload - add comments - add temp scene and TLS test script (will remove later) Tests: ran temp scene
17 Days Ago
Update: rewrite UnsafeScriptingAccess to search for TLS slot dynamically - ran codegen Weirdly SwitchToMultithreading doesn't work, might be my UniTask todo Tests: on windows, using local scripts was able to get and read transform pos
17 Days Ago
Merge: from main
19 Days Ago
Update: add SwitchToMultithreading helper - added ConVar.Unsafe.UseMultithreadedScripting to disable experimental multithreading Tests: compiles
20 Days Ago
Update: added standalone win TLS slot to allow - also wrapped into OS & config dependent compile guards Tests: built all flavors of standalone and checked that code succesfully executes in other project
20 Days Ago
add unsafe scripting access scope