SoftGPU: Very minor performance increase

This commit is contained in:
UnknownShadow200 2024-10-23 07:19:46 +11:00
parent 1853ef1a3a
commit 22e8d52ed6
2 changed files with 10 additions and 8 deletions

View file

@ -1,6 +1,6 @@
AS=m68k-amiga-elf-as
CC=m68k-amiga-elf-gcc
CXX=m68k-amiga-elf-g++
AS=m68k-amigaos-as
CC=m68k-amigaos-gcc
CXX=m68k-amigaos-g++
CFLAGS :=-O1 -fno-math-errno -DPLAT_AMIGA -DCC_BUILD_NOFPU
TARGET := ClassiCube-68k
@ -20,13 +20,13 @@ DEPFILES := $(C_OBJECTS:%.o=%.d)
#---------------------------------------------------------------------------------
# main targets
#---------------------------------------------------------------------------------
default: $(BUILD_DIR) $(TARGET).elf
default: $(BUILD_DIR) $(TARGET).exe
$(BUILD_DIR):
mkdir -p $(BUILD_DIR)
$(TARGET).elf: $(C_OBJECTS)
$(CC) $(LDFLAGS) -o $(TARGET).elf $(C_OBJECTS)
$(TARGET).exe: $(C_OBJECTS)
$(CC) $(LDFLAGS) -o $(TARGET).exe $(C_OBJECTS)
#---------------------------------------------------------------------------------

View file

@ -457,7 +457,9 @@ static void DrawTriangle2D(Vertex* V0, Vertex* V1, Vertex* V2) {
}
if (gfx_alphaTest && A < 0x80) continue;
if (gfx_alphaBlend) {
if (gfx_alphaBlend && A == 0) continue;
if (gfx_alphaBlend && A != 255) {
BitmapCol dst = colorBuffer[cb_index];
int dstR = BitmapCol_R(dst);
int dstG = BitmapCol_G(dst);