Commit graph

161 commits

Author SHA1 Message Date
Brian Roberts
fd730b057d
Merge 7d65976c31 into 20bf6b7de9 2026-06-28 14:57:02 +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
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
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
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
2b295fb7f0 rest of virtuals removed
virtuals removed and replaced with override where necessary on the rest of the code base, clang-tidy to the rescue.
2024-03-18 18:40:22 +00:00
marauder2k7
efbe5e90f5 virtuals removed
virtuals removed and replaced with override where necessary, clang-tidy to the rescue.
2024-03-18 18:13:00 +00:00
marauder2k7
4417462499 Add support for both ies and cookie
Both ies and cookies can now exist on a light

We are still not using all the capabilities of an IES profile, such as candela and luminance values we are just using them as a mask for the moment

Issues compiling on mac and linux, will need to update the ies-loader to use torque methods instead of std::
2024-02-21 07:40:57 +00:00
James Urquhart
3781c7fae5 Add an alternate allocator for DecalManager; Also fix SFX weirdness. 2024-02-04 23:27:31 +00:00
Brian Roberts
0d981b62cf
Merge pull request #1015 from Azaezel/alpha41/consoleCleanups
fix warn reports for buffer over-runs
2023-05-09 14:44:01 -05:00
AzaezelX
0d4221fa59 uninitialized and unused value cleanups
(cherry picked from commit 1f08602cf0ad84409cd8b3520510f9c6ce7d5f9c)
2023-05-01 10:40:02 -05:00
AzaezelX
9e036f142b fix warn reports for buffer oveeruns
also misc uninitialized vars
2023-04-26 22:29:32 -05:00
Jeff Hutchinson
1940becb2d Compilation fixes for C++20 2022-11-28 21:39:06 -05:00
Robert MacGregor
161ffc62fe Merge branch 'Preview4_0' into feature-vfs-security 2022-06-13 08:05:26 -04:00
Robert MacGregor
4ef3f89280 * BugFix: Correct a minor post-merge typo. 2022-06-09 23:10:13 -04:00
Robert MacGregor
1e9aa8b86f Merge branch 'Preview4_0' into str_cpp_memory_experiment 2022-06-09 22:49:43 -04:00
Robert MacGregor
704113577b * Cleanup: Remove leftover comments from str.cpp. 2022-06-09 19:30:25 -04:00
Robert MacGregor
6d0e81763b * BugFix: Correct not setting the string to interned when allocating a StringData with a DataChunker in str.cpp. 2022-06-09 19:26:39 -04:00