Refactor SDL surface backend for improved quad rendering and performance
- Introduced a new structure ImGui_ImplSDLSurface3_Quad to represent quads. - Added functions to detect quads and check for constant colors and linear UVs. - Enhanced rendering functions to utilize quad detection for faster rendering paths. - Updated the rendering logic in ImGui_ImplSDLSurface3_RenderDrawData to leverage the new quad rendering capabilities. - Optimized Makefiles and build scripts to include optimization flags for better performance.
This commit is contained in:
@@ -7,7 +7,8 @@ OBJS = $(addsuffix .o, $(basename $(notdir $(SOURCES))))
|
||||
UNAME_S := $(shell uname -s)
|
||||
|
||||
CXXFLAGS = -std=c++11 -I$(IMGUI_DIR) -I$(IMGUI_DIR)/backends
|
||||
CXXFLAGS += -g -Wall -Wformat
|
||||
OPTFLAGS ?= -O2
|
||||
CXXFLAGS += -g $(OPTFLAGS) -Wall -Wformat
|
||||
LIBS =
|
||||
|
||||
ifeq ($(UNAME_S), Linux)
|
||||
|
||||
Reference in New Issue
Block a user