Commit graph

5236 commits

Author SHA1 Message Date
Brian Roberts
75e0cdc7bb
Merge pull request #1695 from Azaezel/alpha41/matrixWork
Some checks are pending
Linux Build / Ubuntu Latest GCC (push) Waiting to run
MacOSX Build / MacOSX Latest Clang (push) Waiting to run
Windows Build / Windows Latest MSVC (push) Waiting to run
matrix work
2026-03-19 14:31:05 -05:00
Brian Roberts
b8e5a89ed6
Merge pull request #1696 from Azaezel/alpha41/strayStringCmp
emtpy char* check correction
2026-03-19 12:46:27 -05:00
AzaezelX
0005774075 pick up missed strays 2026-03-19 12:06:30 -05:00
AzaezelX
f04f387bc4 ditch general swizzle mask. use the singular 2026-03-19 11:03:12 -05:00
AzaezelX
135f59ab82 Revert "add missing v_swizzle_mask"
This reverts commit decab9210b.
2026-03-19 11:01:20 -05:00
AzaezelX
decab9210b add missing v_swizzle_mask 2026-03-19 10:04:23 -05:00
AzaezelX
64ceec1060 emtpy char* check correction 2026-03-18 20:21:48 -05:00
AzaezelX
6fb3c84073 update 2026-03-18 19:34:30 -05:00
AzaezelX
11d8df4866 matrix work 2026-03-18 19:32:37 -05:00
Brian Roberts
db9dd294b6
Merge pull request #1694 from Azaezel/fixCI
Some checks failed
Linux Build / Ubuntu Latest GCC (push) Has been cancelled
MacOSX Build / MacOSX Latest Clang (push) Has been cancelled
Windows Build / Windows Latest MSVC (push) Has been cancelled
fix CI
2026-03-17 15:44:45 -05:00
AzaezelX
832d1afec4 further followups to CI compilation config 2026-03-17 14:55:23 -05:00
AzaezelX
a64cc6a512 revert some of the more experimental matrix math
from marauder:
Fixing transform plane as some descrepencies between the simd function and the c math caused issues with precision.
Use c math for inverse functions until a proper simd implementation can be found.
2026-03-17 12:59:45 -05:00
Brian Roberts
58632d0d73
Merge pull request #1689 from ZombieSoul/fix-physics-player-collision
Some checks failed
Linux Build / Ubuntu Latest GCC (push) Has been cancelled
MacOSX Build / MacOSX Latest Clang (push) Has been cancelled
Windows Build / Windows Latest MSVC (push) Has been cancelled
Fix wrong variable in physics collision loop
2026-03-15 09:34:06 -05:00
ZombieSoul
014ab6991a Fix wrong variable in physics collision loop
In Player::updatePos(), when processing physics collision results, the code was incorrectly using col.object instead of colCheck.object when checking if the collision object is a player.

This caused:
- First iteration: col.object is uninitialized (zeroed), leading to null pointer access
- Subsequent iterations: col.object contains the previous iteration's value, causing incorrect type checks

The fix changes col.object to colCheck.object to properly check the current collision object.
2026-03-15 10:15:30 -04:00
Brian Roberts
6700cfd993
Merge pull request #1680 from marauder2k9-torque/SIMD-Math-and-ISA-integration
Some checks failed
Linux Build / Ubuntu Latest GCC (push) Has been cancelled
MacOSX Build / MacOSX Latest Clang (push) Has been cancelled
Windows Build / Windows Latest MSVC (push) Has been cancelled
Simd math and isa integration
2026-03-13 12:50:17 -05:00
Brian Roberts
c666f411ef
Merge pull request #1686 from Azaezel/alpha41/containerCorrection
Some checks are pending
Linux Build / Ubuntu Latest GCC (push) Waiting to run
MacOSX Build / MacOSX Latest Clang (push) Waiting to run
Windows Build / Windows Latest MSVC (push) Waiting to run
fix scencontainter itterator filter
2026-03-12 20:52:26 -05:00
Brian Roberts
98619c805b
Merge pull request #1685 from Azaezel/alpha41/fixDebug
fix forward lit shaders in debug mode
2026-03-12 20:52:08 -05:00
AzaezelX
19c5a55dcd fix scencontainter itterator filter 2026-03-11 17:09:29 -05:00
AzaezelX
5b18051b5d fix forward lit shaders in debug mode 2026-03-11 17:04:58 -05:00
JeffR
40f697cea6 Adds sanity checks when removing children to GuiPopUpMenuCtrlEx to prevent crashing on exit 2026-03-11 02:22:17 -05:00
marauder2k7
090dd4993a Update CMakeLists.txt 2026-03-07 16:41:00 +00:00
marauder2k7
57766ba649 Update ImageAsset.cpp
the opened ddsfs file for pulling metadata was leaking. The FileStream function close does not delete the pointer to the original file only FileObject does this. It might be worthwhile instead to switch to using fileObject anywhere we use a filestream that way we can be at least somewhat safe in using the object and once it goes out of scope the raw pointer will be freed
2026-03-07 10:19:58 +00:00
marauder2k7
88ffdd01cd fix linux build 2026-03-06 09:41:35 +00:00
marauder2k7
c09d5a4579 fix batch on neon 2026-03-05 20:04:33 +00:00
marauder2k7
add7f2a5d7 more intrinsics
add transform plane
added first batch function for mulp to intrinsics
2026-03-05 18:55:51 +00:00
marauder2k7
ac6ec05690 fix drift turns out we require the dot product to be in all rows 2026-03-05 18:55:50 +00:00
marauder2k7
8c1acbd1da add normal safety
wrap safety around normal checks, this was done on the scalar math may as well do it here just in case.

Ad the impl.inl files to libraries so they can actually be found.
2026-03-05 18:55:49 +00:00
marauder2k7
5a6467d54a Update mat44_impl.inl
fix matrix normalize
2026-03-05 18:55:47 +00:00
marauder2k7
5c3c0546f6 Update mPoint3.h
missed convolve and convolveInverse
2026-03-05 18:55:46 +00:00
marauder2k7
014e319aa8 cleanup console spam 2026-03-05 18:55:45 +00:00
marauder2k7
65850df9bd Update gfxDrawUtil.cpp
safety no longer needed due to safe initializers
2026-03-05 18:55:44 +00:00
marauder2k7
585279ae82 Update mat44_impl.inl
should use original matrix translation not the dst matrix
2026-03-05 18:55:42 +00:00
marauder2k7
caeaedde52 add inverse to
fix tests by adding an explicit inverse to function
copy 3rd row into dst it seems original was not touching this at all.
2026-03-05 18:55:41 +00:00
marauder2k7
228b474f2e Update math_backend.h
MSVC doesnt use __builtin_expect it is a GCC only flag
2026-03-05 18:55:40 +00:00
marauder2k7
0ba8d948fb neon implementation
removed some x86 intrinsic functions that were in the mat44_impl file
reinstated some mMath_C functions and mMathFn ptrs trying to diagnose an issue.
Had to come up with a different way to initialize the scalar table if the isa tables are not initialized yet. Mac did not like the static initialization.
Had to change neon over to using explicit masks for shifting, cross product was failing during bakes and matrix calculations
2026-03-05 18:55:38 +00:00
marauder2k7
bb1478a8c3 add neon mat for mac 2026-03-05 18:55:37 +00:00
marauder2k7
bc3145bc55 matrix functions
most matrix functions are converted over, no benefit to converting over the project/ortho because they would be scalar anyway but may need to move them regardless.
2026-03-05 18:55:36 +00:00
marauder2k7
67f12311d4 ISA backends float3 and float4 - cleanup history squash
working for both neon32 and neon64

Update math_backend.cpp

further sse simd additions

avx2 float3 added
added normalize_magnitude
added divide fast to float3 may copy to float4

move static spheremesh to drawSphere (initialize on first use) so platform has a chance to load the math backend

all float3 and float4 functions and isas

completed all options of float3 and float4 functions in isas and math_c
neon still to be done but that will be on mac.

Update math_backend.cpp

mac isa neon update

added float3
restructured the classes to look more like the final version of the x86 classes

linux required changes

Update build-macos-clang.yml

Update build-macos-clang.yml

Revert "Update build-macos-clang.yml"

This reverts commit 29dfc567f4.

Revert "Update build-macos-clang.yml"

This reverts commit 2abad2b4ca.

Update CMakeLists.txt

fix macs stupid build

remove god awful rolling average from frame time tracker....

use intrinsic headers instead

each isa implementation now uses a header for that isa's intrinsic functions these are then used in the impl files. This will make it easier for matrix functions when those are implemented.

fixed comment saying 256 when it should be 512 for avx512

consolidated initializers for function tables

Update neon_intrinsics.h

fixes for some neon intrinsics no idea if this is the best way to do these but they work at least

v_cross is especially messy at the moment we basically just do it as a c math function need to look into getting this done correctly
2026-03-05 18:55:34 +00:00
marauder2k7
73ed502ac9 neon float4
note: 64bit only
2026-03-05 18:55:33 +00:00
marauder2k7
9ebcee420f moar changes
mac implementation had _mm_div (x86 intrinsic)
2026-03-05 18:55:32 +00:00
marauder2k7
4e7fdd167b Update CMakeLists.txt
fix mac build
2026-03-05 18:55:31 +00:00
marauder2k7
e9fdffc2dd math backend setup
setup libraries for different simd isa's
add float4 functions for c sse2 and avx2 (placeholder file for neon to be implemented on mac)
2026-03-05 18:55:29 +00:00
marauder2k7
b6ea96f367 cpu info check
find avx2 and avx512
2026-03-05 18:55:28 +00:00
AzaezelX
0418aaa9db from marauder: cover corrections 2026-03-04 10:15:46 -06:00
Brian Roberts
c56fcd8055
Merge pull request #1679 from Azaezel/alpha41/contextCrashes
context safties
2026-03-04 08:47:05 -06:00
AzaezelX
80f62573fe context safties
and from Marauder, hardened filename entry for con::evaluate/compileexec. if the string forwarded along is not a real filename, consider it an eval block
2026-03-02 11:38:20 -06:00
marauder2k7
6449d22d7f opengl debug
committing to test on windows with proper debug output
2026-03-01 13:15:42 +00:00
Brian Roberts
3e146f222a
Merge pull request #1674 from Azaezel/alpha41/nonInvertentialist
Some checks failed
Linux Build / Ubuntu Latest GCC (push) Has been cancelled
MacOSX Build / MacOSX Latest Clang (push) Has been cancelled
Windows Build / Windows Latest MSVC (push) Has been cancelled
don't flip invertroughness on by default
2026-02-24 17:51:14 -06:00
AzaezelX
2b6b56d0d9 don't flip invertroughness on by default 2026-02-24 17:03:12 -06:00
AzaezelX
627b9bc076 minor cleanups for https://github.com/TorqueGameEngines/Torque3D/pull/1672
for context Strings, use c_str(),
for triggers, use Con::getCurrentScriptModulePath() as otherwise, the "%this =" and "%obj=" injections will be treated as within the global scope. which is not allowed.
2026-02-24 15:04:38 -06:00