Commit graph

8268 commits

Author SHA1 Message Date
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
Brian Roberts
88da6f60f6
Merge pull request #1681 from Azaezel/alpha41/coverCorrection
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
Alpha41/cover correction
2026-03-04 10:17:53 -06:00
AzaezelX
0418aaa9db from marauder: cover corrections 2026-03-04 10:15:46 -06:00
AzaezelX
e5ac88e914 Merge branch 'development' of https://github.com/TorqueGameEngines/Torque3D into development 2026-03-04 09:53:58 -06:00
Brian Roberts
c56fcd8055
Merge pull request #1679 from Azaezel/alpha41/contextCrashes
context safties
2026-03-04 08:47:05 -06:00
Brian Roberts
41aa23fff8
Merge pull request #1676 from marauder2k9-torque/OPENGL_DEBUG_MAC
OpenGL Fix mac rendering
2026-03-04 08:46:50 -06:00
Brian Roberts
29aa5c6dfa
Merge pull request #1677 from Azaezel/alpha41/directionCorrection
self shadowing corrections
2026-03-04 08:46:35 -06:00
AzaezelX
001468cb5e tone down overcorrection 2026-03-02 17:08:12 -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
AzaezelX
cf294ad121 selfshadowing corrections
best to stick to the order of the X<dot>Y tags
use PI, not 1/PI to avoid "normal flipping"
2026-03-02 08:52:47 -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
19d8a5525d
Merge pull request #1675 from Azaezel/alpha41/oneVarToHoldThemAll
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
bind grid snapping bool to one variable
2026-02-28 19:41:56 -06:00
AzaezelX
75af5a2bf6 bind grid snapping bool to one variable 2026-02-28 19:19:08 -06: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
Brian Roberts
e7ffff8cb2
Merge pull request #1673 from Azaezel/alpha41/ContextCleanups
minor cleanups for https://github.com/TorqueGameEngines/Torque3D/pull/1672
2026-02-24 16:07:24 -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
Brian Roberts
5981154102
Merge pull request #1672 from Areloch/ExpandedAssertContext
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
Expanded Script Assert Context
2026-02-23 22:47:16 -06:00
Brian Roberts
26638a95c5
Merge pull request #1671 from Azaezel/alpha41/forgetMeNot
don't spool up new helper proxies if the goals are unchanged
2026-02-23 20:06:06 -06:00
Brian Roberts
23e30e801f
Merge pull request #1669 from Azaezel/alpha41/reflectionCorrection
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
make reflectors optional
2026-02-23 10:23:49 -06:00
JeffR
9084e81bc1 Shifted CodeBlock::smCurrentLineText to be a const char* so it's use is clearer
Ensured CodeBlock::smCurrentLineText is cleared at the end of execution
Tweaked and cleaned up the context lines passed along for further debugging data in the event of a script assert
2026-02-22 18:18:42 -06:00
JeffR
171211c4e2 Caches the processed line in CodeBlock for better assert reporting
Adds additional context on eval and evaluate calls to better isolate script executions that are throwing errors, such as via command fields or eval() calls.
2026-02-21 11:03:07 -06:00
AzaezelX
8e7af0bf55 don't spool up new cover proxies if those are unchanged either 2026-02-21 09:59:15 -06:00
AzaezelX
57890a4327 don't spool up new helper proxies if the goals are unchanged 2026-02-21 09:29:33 -06:00
AzaezelX
01b10cfb89 make reflectors optional
don't waste memory per object-instance on non reflective objects
2026-02-19 14:46:19 -06:00
Brian Roberts
2dae0fbbad
Merge pull request #1668 from marauder2k9-torque/development
Some checks failed
MacOSX Build / MacOSX Latest Clang (push) Has been cancelled
Windows Build / Windows Latest MSVC (push) Has been cancelled
Linux Build / Ubuntu Latest GCC (push) Has been cancelled
Various tweaks and fix for font cache
2026-02-16 21:24:46 -06:00
marauder2k7
562756a306 Update guiBitmapCtrl.cpp 2026-02-17 00:23:53 +00:00
marauder2k7
6f0c31468f various fixes
added fix for font cache (stb required size to be read switch back to libpng knocks the stream off)

Added extra control over the rendering of guibtimaps
If guibitmaps are a child of buttons the profile colors now affect how to the button is rendered.
2026-02-17 00:13:10 +00:00
Brian Roberts
2c0558840a
Merge pull request #1667 from Azaezel/alpha41/fontsaveButton
Some checks failed
MacOSX Build / MacOSX Latest Clang (push) Has been cancelled
Windows Build / Windows Latest MSVC (push) Has been cancelled
Linux Build / Ubuntu Latest GCC (push) Has been cancelled
add a (re)Generate font cache button to the profile tab
2026-02-13 10:34:19 -06:00
AzaezelX
34ea855031 add a (re)Generate font cache button to the profile tab
also add a zeroth %sidebar-->button
2026-02-02 22:59:10 -06:00
Brian Roberts
c4931e6bed
Merge pull request #1666 from Azaezel/alpha41/clickClackClunkiness
Some checks failed
Linux Build / ${{matrix.config.name}} (map[build_type:Release cc:gcc cxx:g++ generator:Ninja name:Ubuntu Latest GCC]) (push) Has been cancelled
MacOSX Build / ${{matrix.config.name}} (map[build_type:Release cc:clang cxx:clang++ generator:Ninja name:MacOSX Latest Clang]) (push) Has been cancelled
Windows Build / ${{matrix.config.name}} (map[build_type:Release cc:cl cxx:cl environment_script:C:/Program Files (x86)/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars64.bat generator:Visual Studio 17 2022 name:Windows Latest MSVC]) (push) Has been cancelled
folllowup to https://github.com/TorqueGameEngines/Torque3D/pull/1661
2026-02-02 22:21:32 -06:00