userJames Kingcancel
branchsbox/mastercancel

328 Commits over 1,155 Days - 0.01cph!

10 Months Ago
Add a generic Texture.GetPixels<T>() (#1117) * Added Texture.GetPixels<T>(srcRect, slice, mip, dstData, dstFormat, dstStride) * Fix reading non-zero slice from 3D texture (#1118) * CopyToStagingResource: only use 1 mip level / array slice in staging texture * CopyToStagingResource: fix copy destination offset * GetPixels: add dstSize parameter instead of dstStride * Add Texture.GetPixels3D<T>() * Texture.GetPixels( int mip ) now gets everything for array / volume textures * Added Texture.GetPixel3D() to complement Texture.GetPixel() * GetPixels: fix nativeDstRect size * GetPixels: stride fixes * GetPixels: reading from non-zero mip level fixes
10 Months Ago
Add TaskSource.WorkerThread() Added test for GameTask.WorkerThread() / GameTask.MainThread()
10 Months Ago
Whitelist Task.Wait() / Task.RunSynchronously()
10 Months Ago
Whitelist System.Collections.Concurrent.ConcurrentBag
10 Months Ago
Added Texture.Depth property
10 Months Ago
Added TaskSource.MainThread() Like TaskSource.NextPhysicsFrame(), but can immediately continue if already on the main thread.
10 Months Ago
Limit worker thread count to avoid starving the main thread
10 Months Ago
Failing test reproducing #1027 Fixed #1027
10 Months Ago
Make sure fast hotload related error reports are grouped correctly Failing test reproducing #1087 Gracefully handle NotSupportedException during fast hotload Fixes #1087
11 Months Ago
Added TypeLibrary.GetGenericArguments(Type) with access control checks
11 Months Ago
Simplify ILHotload error report change summary
11 Months Ago
Add CreateDelegate overloads that accept a target object
11 Months Ago
Added MethodDescription.CreateDelegate( Type ) Added TypeDescription.MakeGenericType( Type[] ) Uses same access control checks as CreateGeneric( Type[], object[] )
11 Months Ago
Added MethodDescription.CreateDelegate<T>() Try to get change summary to actually show up in sentry on ILHotload error
11 Months Ago
Fixed #1092 Include a change summary during ILHotload errors Fixed paths to members in hotload sentry reports
11 Months Ago
Failing test reproducing #1027 Fixed #1027 There might be other reasons why methods won't resolve, will re-open if we encounter that
11 Months Ago
Handle TypeInitializationException during UpdateReferencesInType more cleanly Tag ILHotload exceptions with `fast-hotload` Added IHotloadManaged.Failed(), called when an instance couldn't be upgraded IHotloadManaged tests
11 Months Ago
Log some more info when #1027 occurs
11 Months Ago
Failing test for when lambda signatures change Warn on lambda signature change, replace with error-throwing delegate
11 Months Ago
Include member and instance path in hotload error reports
11 Months Ago
Directly write to Logger during hotloads Include path and member in hotload log messages Allow nested FormattableStrings in log messages So that their args can be inspected too
11 Months Ago
Implement IsMatchingType for generic type definitions Fixed IsMatchingType for required modifier types Don't warn about attempted fast hotload of generic method
11 Months Ago
Failing test reproducing #1063 Fixed #1063
11 Months Ago
Support for ConCmd ParamArray arguments Fix compile time bomb when checking big methods for fast hotload support
12 Months Ago
Failing test for #1007 Fixed stack overflow when searching for methods with certain parameter types Fixes #1007
1 Year Ago
Failing test reproducing sboxgame/issues#3227 Fixed sboxgame/issues#3227
1 Year Ago
Warn about missing input actions once Fixed documentation of Compiler.Name Failing test reproducing #996 Better generic method resolution, fixes #996 Possible fix for sboxgame/issues#3227 Make RPC code gen deterministic
1 Year Ago
Addon packages should reference package.base too
1 Year Ago
Remove some logging
1 Year Ago
When loading multiple packages, sort by references Make sure that a referenced package is loaded before the packages that reference it. Possible fix for #996 Added test for Package.SortByReferences()
1 Year Ago
Allow resolving newer versions of assemblies in AccessControl
1 Year Ago
Fixed publishing addons referencing libraries * Added helper DistinctReferences / DistinctPackageReferences properties to include all system / package references respectively. * For addon packages, DistinctPackageReferences will include the parent package.
1 Year Ago
Package reference fixes (#965) * Use PackageReference for referencing packages, References for referencing assemblies * Fixed test passing for the wrong reason * Rename Compiler.PackageReference to PackageReferences * Don't fast hotload if a referenced assembly has changed * More assembly / package reference strictness * Made generic method resolving / comparing stricter * We need to re-resolve all member references in fast-hotloaded methods * More precise logic when deciding if a referencing assembly can be fast-hotloaded * Constructor resolution regression fix * Some cleanup in ILGeneratorExtensions * Hotload.GetMethods helper now matches name * Access control now caches assembly definitions by name + version * Assert that the correct assembly definition version is resolved * Keep exactly the outgoing assembly definition cached, but dispose older versions * Clean up AccessControl.Resolve a bit * WIP referencing fast-hotloaded assembly fix * Fixed unloading IsolatedAssemblyContexts during fast hotload * Remove some logging * Fix menu breaking after hotload * WIP force-reload assemblies that depend on a changed package * Allow resolving newer assembly versions * PackageLoader.LoadAssemblyFromPackage cleanup * Only force an assembly reload if dependent package did a full hotload * Fix exception in ContextTools.DetermineContext in fast hotloaded methods * Init TypeLibrary in TestUI.Panels.PanelTests * Description codegen: just allow multiple [Description] instead of being non-deterministic
1 Year Ago
Test for Assembly.GetExecutingAssembly() Failing test reproducing #957 Fix variable types Although this seems to be non-deterministic, with some cache breaking later replacements Stricter GenericReference2 test Fixed #957 by clearing MonoMod's reflection cache
1 Year Ago
Don't sort generated code blocks inside class groups! Whoops
1 Year Ago
Failing test involving generics causing EntryPointNotFoundException Fixed resolving generic methods Fixed possible stack overflow when fixing references Expanded GenericReference test to help investigate Replacing method now thinks it's inside the original assembly Fixed references to the wrong assembly in fast hotload Don't need to relink variable types
1 Year Ago
Added failing test for changing the body of a lambda Fixed not being able to resolve private nested types Fixed #947 Failing test for async methods #947 Fixed #947 for state machine types Some safety if ILHotload AST processing throws during Parallel.ForEach Only run ILHotload AST processing when hotload_fast >= 1
1 Year Ago
Fall back to normal hotload if exception is thrown during FixReferences
1 Year Ago
Fast method body hotload (#931) * 0ms hotload fast path poc when only method bodies change using MonoMod * Print individual changes during compile, show node paths * WIP check if all changes are in method bodies * Add attributes to package assemblies describing changed methods * SupportsILHotloadAttribute is added if only method bodies change * MethodBodyChangeAttribute is added for each changed method * ILHotload looks for SupportsILHotload and MethodBodyChange attributes * Fixed methods with identical IL not being replaced by ILHotload * ILHotload should never run with a debugger attached * Clean up dead code * Detour using a generated dynamic method copy from the replacing method * Documentation for Compiler.SyntaxTree.cs * Added CompilerSettings.SourcePathFilter predicate * Boilerplate for writing ILHotload tests * Fixed how file changes are emulated in FastPathTest * A bit more flexibility in fast path test case code preprocessing * Added failing fast path hotload test for changing method signatures * ILHotload: changes must be specifically within a BlockSyntax of a method * Added Compiler.UpdateParseOptions() for tests to use * Don't use ILHotload if a preprocessor define changed * Incremental syntax tree parsing * Throw when trying to debug an ILHotload swap during a test * Basic incremental compilation * Make generated code more deterministic, nicer for incremental compile * Keep track of which assembly types are actually loaded from * Re-use compiler options where possible * Changed fast hotload log to a trace * Make OnlyMethodBodiesChanged multithreaded, fixed multiple changes in one file * Failing test for property body changes * Cleanup ILHotload tests, failing test for overloaded method * Refactor AST processing for ILHotload * Fixes after refactor, a bit ugly at the moment * Support fast hotload for property accessors * NoticeWidget shows ms if duration < 1s * Call UISystem.OnHotload after an ILHotload * ILHotload test for nested blocks * Fixed ILHotload change detection for nested blocks * Added hotload_fast engine convar to enable / disable IL hotload * Added failing test of typeof(T) in method body hotloads * Failing test for static references * Fix references to members / types in fast-hotloaded method bodies * Allow debugging ILHotload in Sandbox.Test * Test for fast-hotloaded methods with parameter / return types defined in the changed module * Added failing fast hotload test for compiler-generated type changes * Don't attempt fast hotload if any compiler-generated type definitions change * Record event when we ILHotload, matches naming of existing hotloads so we can derive % easily * Remove defunct code about using cecil as the DMDType, not needed since we fix the references ourselves --------- Co-authored-by: Matt Stevens <matt@mattstevens.co.uk>
1 Year Ago
Handle encountering MethodBase operands in GetStackDelta
1 Year Ago
More helpful error message when trying to get default value of new field
1 Year Ago
Warn rather than throw if a dictionary key becomes null Failing test reproducing #933 Warn when unable to find a scope method, instead of error Fixed error delegates causing an error themselves on upgrade Fixes #933
1 Year Ago
Added failing test reproducing #929 Stricter test for #929 Fixed #929 Fixed IServerDll hotload not being able to resolve package assemblies Fixed ReflectionExtensions.ResolveType Used to not respect the assembly load context of the target module
1 Year Ago
Disable detailed hotload diagnostics unless hotload_log >= 2
1 Year Ago
Add some logging to AsyncTasks.TaskCancel2 To help investigate #210 Allow TaskSource async methods to persist, so they can cancel nicely Use framework methods to find async state machines / tasks A bit more protected against changes Bump up max async task cancellation count
1 Year Ago
Get rid of debug hotload log
1 Year Ago
Added failing test reproducing #869 Fixed #869, emit a warning when fields change type instead of an error Fixed sboxgame/issues#3043
1 Year Ago
Failing test case to reproduce #876 Fixed #876 HOTLOAD_NOCATCH will stop hotload from catching exceptions
1 Year Ago
Failing test for lambdas implemented as static methods Split nested scope method delegate tests Support for lambdas with nested scope methods
1 Year Ago
Test for block copying List<T> or T[] Lists of structs can use array block copying again More direct copy for StructArrayConverter Fix possible NRE when logging about methods without declaring types Fixed setting size of block-copied list