mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-09-10 16:53:15 +02:00
fixed some warnings in render.c, switched to -O3 optimization (no performance increase for Virtua Racing however), modified libsamplerate default when Virtua Racing is running to gain some fps
This commit is contained in:
parent
68e201835f
commit
7b4ec49188
@ -26,7 +26,7 @@ INCLUDES := source source/m68k source/z80 source/sound source/cart_hw \
|
|||||||
# options for code generation
|
# options for code generation
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
|
|
||||||
CFLAGS = -fno-strict-aliasing -O2 -Wall $(MACHDEP) $(INCLUDE) -DWORDS_BIGENDIAN -DNGC="1" -DHW_DOL
|
CFLAGS = -O3 -Wall $(MACHDEP) $(INCLUDE) -DWORDS_BIGENDIAN -DNGC="1" -DHW_DOL
|
||||||
CXXFLAGS = $(CFLAGS)
|
CXXFLAGS = $(CFLAGS)
|
||||||
|
|
||||||
LDFLAGS = $(MACHDEP) -Wl,-Map,$(notdir $@).map
|
LDFLAGS = $(MACHDEP) -Wl,-Map,$(notdir $@).map
|
||||||
|
@ -26,7 +26,7 @@ INCLUDES := source source/m68k source/z80 source/sound source/cart_hw\
|
|||||||
# options for code generation
|
# options for code generation
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
|
|
||||||
CFLAGS = -O2 -mrvl -Wall $(MACHDEP) -fno-strict-aliasing $(INCLUDE) -DWORDS_BIGENDIAN -DNGC="1" -DHW_RVL
|
CFLAGS = -O3 -mrvl -Wall $(MACHDEP) -fno-strict-aliasing $(INCLUDE) -DWORDS_BIGENDIAN -DNGC="1" -DHW_RVL
|
||||||
CXXFLAGS = $(CFLAGS)
|
CXXFLAGS = $(CFLAGS)
|
||||||
|
|
||||||
LDFLAGS = $(MACHDEP) -Wl,-Map,$(notdir $@).map
|
LDFLAGS = $(MACHDEP) -Wl,-Map,$(notdir $@).map
|
||||||
|
@ -757,7 +757,7 @@ void render_ntx(int which, int line, uint8 *buf)
|
|||||||
int shift;
|
int shift;
|
||||||
int v_line;
|
int v_line;
|
||||||
uint32 atex, atbuf, *src, *dst;
|
uint32 atex, atbuf, *src, *dst;
|
||||||
uint16 xscroll;
|
uint16 xscroll = 0;
|
||||||
int y_scroll;
|
int y_scroll;
|
||||||
uint32 *nt;
|
uint32 *nt;
|
||||||
uint32 *vs;
|
uint32 *vs;
|
||||||
@ -819,7 +819,7 @@ void render_ntx_im2(int which, int line, uint8 *buf, uint8 odd)
|
|||||||
int shift;
|
int shift;
|
||||||
int v_line;
|
int v_line;
|
||||||
uint32 atex, atbuf, *src, *dst;
|
uint32 atex, atbuf, *src, *dst;
|
||||||
uint16 xscroll;
|
uint16 xscroll = 0;
|
||||||
int y_scroll;
|
int y_scroll;
|
||||||
uint32 *nt;
|
uint32 *nt;
|
||||||
uint32 *vs;
|
uint32 *vs;
|
||||||
@ -880,7 +880,7 @@ void render_ntx_vs(int which, int line, uint8 *buf)
|
|||||||
int shift;
|
int shift;
|
||||||
int v_line;
|
int v_line;
|
||||||
uint32 atex, atbuf, *src, *dst;
|
uint32 atex, atbuf, *src, *dst;
|
||||||
uint16 xscroll;
|
uint16 xscroll = 0;
|
||||||
int y_scroll;
|
int y_scroll;
|
||||||
uint32 *nt;
|
uint32 *nt;
|
||||||
uint32 *vs;
|
uint32 *vs;
|
||||||
|
@ -164,7 +164,7 @@ void sound_update(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* samplerate conversion */
|
/* samplerate conversion */
|
||||||
src_simple (&src_data, SRC_SINC_FASTEST, 2);
|
src_simple (&src_data, svp ? SRC_LINEAR : SRC_SINC_FASTEST, 2);
|
||||||
|
|
||||||
/* this is basically libsamplerate "src_float_to_int_array" function, adapted to interlace samples */
|
/* this is basically libsamplerate "src_float_to_int_array" function, adapted to interlace samples */
|
||||||
len = snd.buffer_size;
|
len = snd.buffer_size;
|
||||||
|
Loading…
Reference in New Issue
Block a user