Commit graph

322 commits

Author SHA1 Message Date
Brian Roberts
fd730b057d
Merge 7d65976c31 into 20bf6b7de9 2026-06-28 14:57:02 +01:00
marauder2k7
dacc4db708 dx caching result 2026-06-05 14:52:30 +01:00
marauder2k7
4cf780e7b8 Shader Gen to produce ShaderData
Shader gen now produces a shaderdata class - this should reduce full recompilation of shaders when a macro switch happens.

FileStream can now also be setup to be async write, so it will write out the file on a separate thread hopefully freeing up the main thread to continue working.
2026-06-05 11:29:18 +01:00
AzaezelX
7d65976c31 licence updates 2026-05-30 11:56:45 -05:00
AzaezelX
fc8c3531cb mac fix, needed to tell it yes, we'll never have a >32 bit offset for a member variable
typofix in tree. which...somehow compiled on windows anyway... will have to hunt that down..
2026-05-13 17:54:25 -05:00
AzaezelX
c4948c38c9 unit test lambda fixes for older compilers
refactor treeobject to better leverage vector COUNT limiter
2026-05-13 17:21:30 -05:00
AzaezelX
39fbd48d5a be more precice when it comes to templates on unix derivatives 2026-05-13 16:33:23 -05:00
AzaezelX
fb75d0fefb mac was somehow not already including "math/mMathFn.h" in the chain 2026-05-13 15:33:59 -05:00
AzaezelX
6fcb08bb86 use t3d methods, not raw std. shadowvar fix. 2026-05-13 14:53:39 -05:00
marauder2k7
2dc27fcc56 Update refBase.h
fixes the issue with strongweakptrs

uses atomic for the mrefcount making all base classes at least at the weakrefbase/strongrefbase level thread safe
2026-05-10 14:00:54 +01:00
AzaezelX
cd8c944989 vector work to allow it to take an allocator, as well as a fixed count and skip the tracking vars. 2026-03-07 09:36:46 -06:00
marauder2k7
8c8c2591fe ref base use smart pointers 2026-03-06 08:44:44 +00:00
AzaezelX
c4e973c6e9 while modern compilers *should* already treat template methods as inherently inline, never hurst to spell it out 2026-02-03 21:21:24 -06:00
AzaezelX
39124f6408 sorted methods into aspects for ease of lookup, , const correctness handling, more utility methods, mostly focused on extracting vectors, plugging in callback enabled functions, and the ability to add safety checks like circular dependency detection (also tree stitching) 2026-02-03 18:41:19 -06:00
AzaezelX
1df49dc6f7 general cleanups, hardening.
added new methods
inline void nullChild(U32 i)
   static void safeDetachFromParent(TreeNode<T, nullClears>* node)
   inline void forEachLeafAs(Func callback)
2026-02-02 22:11:23 -06:00
AzaezelX
8ec65267ea cleanups, utility methods
extended template to use a compiletime nullClears (defaults to true) to clear nodes if they would be set to NULL entries
cleanups and refactors
yet more utility methods
2026-01-30 00:52:33 -06:00
AzaezelX
09f0fa2861 cleanups and a few more utility methods 2026-01-27 17:47:19 -06:00
AzaezelX
0175c109ac safety 2026-01-27 00:32:12 -06:00
AzaezelX
6d708af9ba destructor work, set/get child by ID work 2026-01-26 01:44:05 -06:00
AzaezelX
c72d8a1f9b baseline node augs
tree->treenode for clarity, foreshorted a few method names, added a few inline utility methods
2026-01-25 13:18:01 -06:00
AzaezelX
b692aa14c2 vectorobject for vector script exposure similar to the treeobject class.
todo: see about using the former in the latter
2026-01-24 16:00:50 -06:00
AzaezelX
4c73e381c3 tree template
variation on vector
2026-01-08 11:53:12 -06:00
AzaezelX
5ffa3b81f1 dial back nullPtr usage
while it still remains a good idea to port as many NULL compares and assignments over to nullPtr as feasable, we do still need to sort out how to better support scripted empty, false, and zero assigns for things like objectIDs.

this means we'll need to both fully convert the backend of the parser to support that kind of thing, but also alter most if not all exisiting NULLs. up to and including things like SAFE_DELETE. while that's certainly feasable, given there's aproximatel 400 nullptr assigns/checks prior to this commit, and roughly 1800 of the prior, if it terminates in a script call and not an aip one direct, we'll be dialing that back until such time as fork fully fopcused on converting and resolving any lingering mismatches is completed.
2025-12-29 17:45:09 -06:00
Triston Caton
c24d0211bd more constexprs
# Conflicts:
#	Engine/source/core/util/refBase.h
2025-10-05 13:24:54 -04:00
Triston Caton
8d1e95b3f3 resolved constexpr constructor not mem-initializing member variables 2025-10-04 19:38:30 -04:00
Triston Caton
4fc85ba717 addressed some refBase.h warns 2025-10-04 17:18:38 -04:00
AzaezelX
2c15877d5a add extra safeties to safe_delete macros 2025-06-06 10:45:05 -05:00
AzaezelX
76b33ab57b unintialized variable cleanups 2025-05-26 15:16:48 -05:00
AzaezelX
6596865d92 overflow avoidance 2025-05-26 15:16:18 -05:00
AzaezelX
ddac695252 unintialized variable cleanups 2025-05-26 14:20:22 -05:00
marauder2k7
d8315267e8 clear utf16 cache
this stops the unicode global cache from showing in the memleak output
2025-05-12 11:50:22 +01:00
marauder2k7
b0eb3875c9 changes from az
Output now collates issues together into 1 entry for each leak point
tDictionary leak
2025-05-12 11:50:18 +01:00
bank
5e8af7020c
Fix memory leak in ZipSubRStream
Inside attachStream() method we may clone passed stream, but never delete it.
2025-02-19 15:06:02 +03:00
marauder2k7
44a6ceab2d code review
Revert Hsb to using integers
Clamp drag values
2025-01-27 08:04:55 +00:00
marauder2k7
a91ddfffa1 fixes for linux
According to doc and man pages we should not be using %Lg for a double as %Lg relates to a long double, F64 in torque is just a double so. This also produces better results when going from colorF to the colorPicker dialogue
2025-01-24 08:44:57 +00:00
marauder2k7
93352f5754 linear to hsb and back again requires srgb calcs 2025-01-23 19:37:15 +00:00
marauder2k7
704e304eef display correct values
Few fixes to display float values if the inspector field asks for floats
Split Hsb out from colorI now linearColorF can return HSB from its own color without having to go through the colorI conversion, hopefully gets rid of rounding errors etc since we are only doing the calc once.
2025-01-23 19:06:35 +00:00
marauder2k7
48ca98ca84 color palette saving
for now saves palette colours as their hex value. This will miss out on the alpha value.
2025-01-23 14:46:05 +00:00
marauder2k7
029a495de1 change hsb to doubles internally 2025-01-22 20:12:49 +00:00
marauder2k7
5ca1c37fe9 more fixes for hsb conversion and gui updated 2025-01-22 19:14:40 +00:00
marauder2k7
29a9bd7917 ground work before gui 2025-01-22 17:21:46 +00:00
marauder2k7
888332a85c rest of the implementation
apparently templated classes need all functions to be inline, otherwise unresolved symbols
macro for switching between matrixf and templated
few functions that were missed
2024-07-28 14:35:34 +01:00
marauder2k7
324acaf896 Update uuid.cpp
code review from Tron better method for uuid toString
2024-07-23 13:36:49 +01:00
marauder2k7
665fc092aa Update uuid.cpp
remove dmalloc
2024-07-23 13:09:23 +01:00
marauder2k7
80a1f0a0c5 Update uuid.cpp
add a malloc to target to make sure it has the length to take the string
2024-07-23 08:07:54 +01:00
marauder2k7
0853748f12 Update uuid.cpp
2 pass format_token, 1st gets the length required second passes it to target.
2024-07-23 07:58:03 +01:00
marauder2k7
3e57c709d9 Update uuid.cpp 2024-07-23 01:33:26 +01:00
marauder2k7
a621cc5100 various warnings
warnings cleanup
2024-07-22 20:59:48 +01:00
marauder2k7
54d0da6690 Update stringFunctions.h
changes to dAtob from az
2024-06-18 15:10:24 +01:00
AzaezelX
5c701fe09e file write clarifications
handle clang complaints about hidden virtuals in the context of file writes that have thier own routes and I/O needs.
2024-06-10 13:15:27 -05:00