- Code: Select all
indexByte1 = (yy^1) * tileX + ((xx + 0)^1);
indexByte2 = (yy^1) * tileX + ((xx + 1)^1);
before the series of "if (TileX ==..." and substitute accordingly. And when (tileX == 1) use indexByte2
indexByte1 = (yy^1) * tileX + ((xx + 0)^1);
indexByte2 = (yy^1) * tileX + ((xx + 1)^1);
HarryTuttle wrote:I've to add that it's not the first time Supermodel compiled with gcc doesn't crash for out of bounds array indices. The last case was an off-by-one-error that should give, as I've read, unexpected results.
Someone here suggested to compile with these arguments: -fsanitize=address -ggdb, explanation here.
I've tried that but when linking it throws out an insane amount of errors relating to m68kmake.c, PPCDisasm.cpp, Z80Debug.cpp, etc... plus some other MSYS2 includes...![]()
I don't want to even remotely mess with those things.
HarryTuttle wrote: The performance impact is almost imperceptible. Patch pending.
scd wrote:does it means more fps harry?
HarryTuttle wrote:scd wrote:does it means more fps harry?
Well, actually means that there's a little, if any, fps loss. But considering that soon I'm going to post a new patch to improve texture uploading mechanism, I think in the end there will be a general gain in fps.
scd wrote:there is any name for this patch? i will look forward too.
microTexCoord = baseTexCoord * (baseTexSize / (128 >> (1 << ph.MicroTextureMinLOD())))Users browsing this forum: No registered users and 1 guest