HomeWildfire Games

Remove SSE detection duplication in Colors and ModelRenderer

Description

Remove SSE detection duplication in Colors and ModelRenderer

  • Rename macros to be more explicit
  • Move detection code to a separate file
  • Remove a lot of checks in ARB mode (ModelDef.cpp would check for sse multiple times per frame)
  • Make explicit the SSE2 dependency for Windows

Comments by: @vladislavbelov @wraitii @OptimusShepard

Differential Revision: https://code.wildfiregames.com/D3212

Event Timeline

vladislavbelov added inline comments.Jan 2 2021, 2:55 PM
/ps/trunk/source/graphics/ModelDef.h
278

I suppose extern is not needed here, since the function isn't used in a separate modules/libraries.

vladislavbelov added inline comments.Jan 20 2021, 7:09 PM
/ps/trunk/source/lib/sse.h
1

I think it's the wrong place for such header, since it's platform dependent. It should be in source/lib/sysdep/x86_x64 and similar.