new mesh deformer using SSE2 instructions

This commit is contained in:
d1str4ught
2025-08-26 04:40:28 +02:00
parent f78aa5bbc8
commit fb7eba799e
4 changed files with 195 additions and 13 deletions

View File

@@ -3,6 +3,7 @@
#include "../eterBase/Stl.h"
#include "../eterBase/Debug.h"
bool CPU_HAS_SSE2 = false;
bool GRAPHICS_CAPS_CAN_NOT_DRAW_LINE = false;
bool GRAPHICS_CAPS_CAN_NOT_DRAW_SHADOW = false;
bool GRAPHICS_CAPS_HALF_SIZE_IMAGE = false;
@@ -561,6 +562,12 @@ RETRY:
ms_isLowTextureMemory = true;
}
// CPU check
int cpuInfo[4] = { 0 };
__cpuid(cpuInfo, 1);
CPU_HAS_SSE2 = cpuInfo[3] & (1 << 26);
return (iRet);
}