mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-22 09:01:57 -05:00
SoftGPU: Very minor performance increase
This commit is contained in:
parent
1853ef1a3a
commit
22e8d52ed6
2 changed files with 10 additions and 8 deletions
|
@ -1,12 +1,12 @@
|
|||
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
|
||||
BUILD_DIR := build-amiga-68k
|
||||
SOURCE_DIR := src
|
||||
LDFLAGS :=
|
||||
LDFLAGS :=
|
||||
|
||||
C_SOURCES := $(wildcard $(SOURCE_DIR)/*.c)
|
||||
C_ASSEMS := $(patsubst $(SOURCE_DIR)/%.c, $(BUILD_DIR)/%.S, $(C_SOURCES))
|
||||
|
@ -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)
|
||||
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue