mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-23 22:25:41 +00:00
edb11dc223
The old texture code was being bottle necked by the texture reads. We mirrored the real3d texture memory directly, including the mipmaps in a single large texture. I *think* most h/w has some sort of texture cache for a 2x2 or 4x4 block of pixels for a texture. What we were doing was reading the base texture, then reading the mipmap data from a totally separate part of the same texture which I can only assume flushed this cache. What I did was to create mipmap chains for the texture sheet, then copy the mipmap data there. Doing this basically doubles performance. |
||
---|---|---|
.. | ||
GLSLShader.cpp | ||
GLSLShader.h | ||
Mat4.cpp | ||
Mat4.h | ||
Model.cpp | ||
Model.h | ||
New3D.cpp | ||
New3D.h | ||
Plane.h | ||
PolyHeader.cpp | ||
PolyHeader.h | ||
R3DData.h | ||
R3DFloat.cpp | ||
R3DFloat.h | ||
R3DFrameBuffers.cpp | ||
R3DFrameBuffers.h | ||
R3DScrollFog.cpp | ||
R3DScrollFog.h | ||
R3DShader.cpp | ||
R3DShader.h | ||
R3DShaderCommon.h | ||
R3DShaderQuads.h | ||
R3DShaderTriangles.h | ||
TextureBank.cpp | ||
TextureBank.h | ||
VBO.cpp | ||
VBO.h | ||
Vec.cpp | ||
Vec.h |