From 4ae78583f731a3d8512693e80ccbcf522855312b Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sat, 22 Feb 2020 23:59:26 +0100 Subject: Fixed map_three, Makefiles have POWERMODE --- Makefile | 9 +++++++++ inc/cub3d_defines.h | 2 +- libft/Makefile | 8 ++++++++ map/map_one.cub | 2 +- map/map_three.cub | 8 ++++---- 5 files changed, 23 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 2c2443d..91985bb 100644 --- a/Makefile +++ b/Makefile @@ -97,6 +97,12 @@ ifdef ASAN CFLAGS += ${FSANITIZE} endif #--------------------------------------------------------------------------------------------------# +ifdef POWER + CFLAGS += -march=ivybridge + CFLAGS += -O2 + CFLAGS += -pipe +endif +#--------------------------------------------------------------------------------------------------# CDEFS = -DFT_SCR_SIZE=\"${SCR_SZE}\" ifneq (${OS}, Darwin) CDEFS += -DFT_W_KEY=119 @@ -140,6 +146,9 @@ ifeq (${OS}, Darwin) endif ifdef ASAN @$(MAKE) --no-print-directory -C ${LFT_DIR} all ASAN=1 +endif +ifdef POWER + @$(MAKE) --no-print-directory -C ${LFT_DIR} all POWER=1 else @$(MAKE) --no-print-directory -C ${LFT_DIR} all endif diff --git a/inc/cub3d_defines.h b/inc/cub3d_defines.h index f591f14..dd34fa7 100644 --- a/inc/cub3d_defines.h +++ b/inc/cub3d_defines.h @@ -49,7 +49,7 @@ ** ====== MOVE SPEED ====== */ -# define FT_MOVE_SPEED 0.3 +# define FT_MOVE_SPEED 0.2 # define FT_STRAFE_SPEED 0.1 # define FT_ROT_SPEED 0.09 diff --git a/libft/Makefile b/libft/Makefile index aef5f5d..fce6434 100644 --- a/libft/Makefile +++ b/libft/Makefile @@ -115,16 +115,24 @@ DEBUG = -glldb FSANITIZE = -fsanitize=address #------------------------------------------------------------------------------# CC = clang +#------------------------------------------------------------------------------# CFLAGS = -std=c89 CFLAGS += -Wall CFLAGS += -Wextra CFLAGS += -Werror CFLAGS += -pedantic +#------------------------------------------------------------------------------# ifdef ASAN CFLAGS += ${DEBUG} CFLAGS += ${FSANITIZE} endif #------------------------------------------------------------------------------# +ifdef POWER + CFLAGS += -march=ivybridge + CFLAGS += -O2 + CFLAGS += -pipe +endif +#------------------------------------------------------------------------------# NAME = libft.a #==============================================================================# #-------------------------------- Library -------------------------------------# diff --git a/map/map_one.cub b/map/map_one.cub index a079238..9269e32 100644 --- a/map/map_one.cub +++ b/map/map_one.cub @@ -1,4 +1,4 @@ -R 1400 10000 +R 1400 900 NO ./media/img/BRIQUASSES.xpm SO ./media/img/BRIQUASSE_3.xpm diff --git a/map/map_three.cub b/map/map_three.cub index c2e6edf..fade5ef 100644 --- a/map/map_three.cub +++ b/map/map_three.cub @@ -9,7 +9,7 @@ S ./media/img/segfot.xpm C 50,100,200 F 50,190,124 -1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 -1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 -1 E 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 -1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 +1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 +1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 +1 E 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 +1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 -- cgit v1.2.3