Commit Graph

36 Commits

Author SHA1 Message Date
Matt Stevens
5423247b66 vswhere only finds visual studio 2026-01-29 13:14:07 +00:00
Matt Stevens
cc1df7e75a Map all the new files to the public repo 2026-01-26 13:31:46 +00:00
Lorenz Junglas
b8cc400d27 Revert most of SyncScript: Do rclone destination exists check ourselves (#3888) (#3891)
Turns out the --ignore-existing check works fine and something else was causing increased uploads.
Kept the cleaned up logging.
2026-01-26 08:30:02 +00:00
Lorenz Junglas
a82e13bf4b SyncScript: Do rclone destination exists check ourselves (#3888)
That way we actually know how much is uploaded

Also gets rid of verbose per file logging.
2026-01-23 12:39:33 +00:00
Matt Stevens
0b4326da12 exportsystem.dll doesn't exist 2026-01-23 10:52:44 +00:00
Matt Stevens
923d322265 Code sign managed bins, and don't sign third party bins 2026-01-23 10:36:54 +00:00
Matt Stevens
5e75600e72 Sign binaries on Windows (#3882) 2026-01-22 22:08:20 +00:00
Matt Stevens
33f9f23509 Can build using Visual Studio Build Tools for build servers
* SboxBuild: Can find Visual Studio Build Tools
* Update vswhere
* Make visualstudioautomation less horrible to compile
* schemacompiler works under visual studio build tools
2026-01-22 09:05:10 +00:00
Matt Stevens
4cf321990e Unfuck SyncPublicRepo 2026-01-15 18:16:22 +00:00
Sam Pavlovic
c8a483ed6f Clustered Culling (#3755)
* Clustered prototype

* Cleanup

* Cleanup, clustered culling uses switch case for readability, put generic math classes in math folder,

* Decals evaluate as a sphere, simpler, API for envmaps and lights dont take positionSs anymore

* Revert this shit on complex

* TiledCullingLayer > ClusteredCullingLayer

* Remove references to UseClusteredLighting/UseTiledLighting, just make it work everywhere

* Remove old tiled culling files

* Remove ClusterFrustum.hlsl since we have a generic one

* Remove OBB as we just test simple bounds for decal

* Final cleanups

* Remove references to tiled culling from native engine

* Adjust toolsvis for clustered

* Rename tiled culling references to clustered culling in render pipeline and tools visualization

* Build shaders

* Format

* Fix fog's near frustum cull plane and clustered warning from Mr. Copilot

* remove the last crumbs from tiled rendering

* Update shaders

* skybox rendering  use ClusteredCullingLayer instead of TiledCullingLayer

* Volume fog still referencing MAX_LIGHTS_PER_TILE, should have it using clusters but slower for now
2026-01-15 13:56:11 -03:00
Lorenz Junglas
236b95e0ed Disposable diagnostic (#3693)
* Enable CA2000 in editorconfig

* Remove unused CaptureStdOut class

* Add missing dispose calls in Sandbox.Tools

* Add missing dispose calls in tests

* Add missing dispose calls in launchers

* Add missing dispose calls in Topten.RichtTextKit

* Add missing dispose calls in Engine

* Add missing dispose calls in SboxBuild

* Add nullchecks to a few dispose calls

* Fix more missing disposal calls and leaks

* Disable CA2000 for Textures

* Fix disposing too early in ImageFileTextureGenerator

* Fix disposing codec, ownership is transferred to animation

* Add missing using in ByteStream benchmark
2026-01-12 21:59:15 +01:00
Lorenz Junglas
91f8fcf183 Speed up / parallelize tests (#3587)
- Added Sandbox.Test.Unit project (contains independent tests that can run in parallel) 
- Modify some slow/stress tests (e.g. instead of doing a million iterations settle for 10k).

Tests run almost twice as fast now.
2025-12-10 14:23:00 +01:00
Lorenz Junglas
6808d8768e Shutdown fixes (#3553)
* Stop generating solutions via -test flag add -generatesolution

* Add TestAppSystem remove Application.InitUnitTest

Avoids some hacks and also makes sure our tests are as close to a real AppSystem as possible.

* Add shutdown unit test

shuts down an re-inits the engine

* Properly dispose native resources hold by managed during shutdown

Should fix a bunch of crashes

* Fix filesystem and networking tests

* StandaloneTest does proper Game Close

* Make sure package tests clean up properly

* Make sure menu scene and resources are released on shutdown

* Report leaked scenes on shutdown

* Ensure DestroyImmediate is not used on scenes

* Fix unmounting in unit tests not clearing native refs

* Force destroy native resource on ResourceLib Clear
2025-12-08 15:55:11 +01:00
Matt Stevens
a4d13731cc Increase SentryRelease timeout 30s -> 120s 2025-12-03 09:24:30 +00:00
Matt Stevens
eb563ad0d9 SyncPublicRepo: Upload Linux binaries 2025-12-02 17:41:54 +00:00
Matt Stevens
4d2b668de1 Everything seems to be in order.. remove dry-run 2025-12-02 16:54:19 +00:00
Matt Stevens
6f7ae597f4 gha: build staging on multiple platforms, upload artifacts, sync in it's own runner
* ci triggers win64 and linuxamd64 workflows
* workflows upload their artifacts to gha
* sync workflow is on it's own runner and downloads the artifacts,
  it then builds the filtered repo and uploads a full manifest to r2
* remove sync step from Deploy pipeline
* disable force push, the history should always match
2025-12-02 14:53:34 +00:00
Lorenz Junglas
84bc10a6c4 Fix sync not handling deleted lfs files correctly 2025-12-02 11:44:21 +00:00
Matt Stevens
359dd1cb21 gha: do formatting step in seperate cloud runner in parallel (#3521) 2025-12-01 12:22:31 +00:00
Lorenz Junglas
1408529189 PR triage requires checks to pass (#3503)
* Add formatting workflow to git filter-repo path rename

* Verify checks pass before triaging
2025-12-01 11:43:11 +01:00
Lorenz Junglas
1a29f98237 Public sync upload build content artifacts (#3518)
* Sync build content to r2
* Additional safe guards for uploading
2025-12-01 08:45:58 +00:00
Lorenz Junglas
28e8e8609f Artifact Download: Walk back commits until a valid manifest is found (#3485) 2025-11-28 10:37:20 +00:00
Lorenz Junglas
64fc154f39 Fix private PR formatting check (#3473)
* Make sure our private PR action run also check BuildTool formatting

* Format BuildTools
2025-11-27 10:17:39 +00:00
Lorenz Junglas
0581185500 Fix Unreachable Code warning in Writer.Import.cs (#3472)
Fixes Warning: D:\a\sbox-public\sbox-public\engine\Tools\InteropGen\Writer\ManagerWriter.Imports.cs(133,7): warning CS0162: Unreachable code detected [D:\a\sbox-public\sbox-public\engine\Tools\InteropGen\InteropGen.csproj]
2025-11-27 10:17:24 +00:00
Lorenz Junglas
5addf6f59b Public PR Github Action Checksuite (#3470)
Checks formatting
Runs tests
2025-11-27 10:08:41 +01:00
Lorenz Junglas
8b1d58d524 Fix native interop gen being skipped in in private build (#3462) 2025-11-26 19:43:30 +00:00
Lorenz Junglas
09d20a4482 Fix git filtering causing inconsistent commit hashes when files are deleted
Move filter implementation to python so we have more flexibility when implementing filters.
Make sure deleted files are properly filtered by evaluating globs in the filter itself not before.
Make sure deleted LFS files are accounted for by scanning the history of the shallow clone for delete/changed lfs files.
Whitelist some additional shaders.
2025-11-26 13:25:18 +00:00
Lorenz Junglas
c2c74e1719 Public bootstrap robust download (#3450)
* More robust downloading of artifacts

Don't download to a temp file first
Try to retry download up to 3 times, if it fails
Fail Bootstrap if any download fails

* Fix contentbuilder and shadercompiler not forwarding to stdout
2025-11-26 08:27:14 +00:00
Matt Stevens
89e669c155 Public PR triage workflow 2025-11-26 01:01:35 +00:00
Lorenz Junglas
8dbcd83bbe Refactor the public repo sync (#3444)
* Refactor sync script

Use single filter repo call
Use globs instead of python madness
Ensure shallow clone is clean before working on it

* Add dry run option to sync script
* Add public gitattributes
2025-11-25 14:40:57 +01:00
Matt Stevens
49b28d213c Use a tagged commit for the public baseline, using a date jumped between different commits 2025-11-25 09:54:19 +00:00
Lorenz Junglas
e8a0d480c1 Free native engine dlls before shutdown (#3307) 2025-11-24 17:05:27 +01:00
Matt Stevens
71f3ce2d42 Do sync step sooner, avoid any extra junk made during tests/upload 2025-11-24 12:12:29 +00:00
Matt Stevens
0675def24c Add missing shader includes 2025-11-24 12:10:29 +00:00
Matt Stevens
7792af8dce .gitignore for public repo 2025-11-24 12:00:11 +00:00
s&box team
71f266059a Open source release
This commit imports the C# engine code and game files, excluding C++ source code.

[Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
2025-11-24 09:05:18 +00:00