mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-14 10:05:44 -04:00
PS1/Saturn/NDS: disable held block for better performance (now ~58 FPS when standing still on PS1, ~50 when moving)
This commit is contained in:
parent
ba034579f9
commit
4f184e46f5
@ -12,7 +12,7 @@
|
||||
#include "Options.h"
|
||||
#include "Logger.h"
|
||||
|
||||
#ifdef CC_BUILD_ANIMATIONS
|
||||
#ifndef CC_BUILD_NOFPUHARDWARE
|
||||
static void Animations_Update(int loc, struct Bitmap* bmp, int stride);
|
||||
|
||||
#ifdef CC_BUILD_LOWMEM
|
||||
|
@ -382,7 +382,7 @@ typedef cc_uint8 cc_bool;
|
||||
#define CC_BUILD_HTTPCLIENT
|
||||
#define CC_BUILD_TOUCH
|
||||
#define CC_BUILD_SMALLSTACK
|
||||
#undef CC_BUILD_ANIMATIONS /* Very costly in FPU less system */
|
||||
#define CC_BUILD_NOFPUHARDWARE
|
||||
#undef CC_BUILD_ADVLIGHTING
|
||||
#elif defined __WIIU__
|
||||
#define CC_BUILD_WIIU
|
||||
@ -410,9 +410,9 @@ typedef cc_uint8 cc_bool;
|
||||
#define CC_BUILD_COOPTHREADED
|
||||
#define CC_BUILD_NOMUSIC
|
||||
#define CC_BUILD_NOSOUNDS
|
||||
#define CC_BUILD_NOFPUHARDWARE
|
||||
#undef CC_BUILD_RESOURCES
|
||||
#undef CC_BUILD_NETWORKING
|
||||
#undef CC_BUILD_ANIMATIONS /* Very costly in FPU less system */
|
||||
#undef CC_BUILD_ADVLIGHTING
|
||||
#undef CC_BUILD_FILESYSTEM
|
||||
#elif defined OS2
|
||||
@ -432,9 +432,9 @@ typedef cc_uint8 cc_bool;
|
||||
#define CC_BUILD_NOSOUNDS
|
||||
#define CC_BUILD_SMALLSTACK
|
||||
#define CC_BUILD_TINYSTACK
|
||||
#define CC_BUILD_NOFPUHARDWARE
|
||||
#undef CC_BUILD_RESOURCES
|
||||
#undef CC_BUILD_NETWORKING
|
||||
#undef CC_BUILD_ANIMATIONS /* Very costly in FPU less system */
|
||||
#undef CC_BUILD_ADVLIGHTING
|
||||
#undef CC_BUILD_FILESYSTEM
|
||||
#endif
|
||||
|
@ -253,7 +253,11 @@ static void OnInit(void) {
|
||||
held_entity.VTABLE = &heldEntity_VTABLE;
|
||||
held_entity.NoShade = true;
|
||||
|
||||
#ifdef CC_BUILD_NOFPUHARDWARE
|
||||
HeldBlockRenderer_Show = false;
|
||||
#else
|
||||
HeldBlockRenderer_Show = Options_GetBool(OPT_SHOW_BLOCK_IN_HAND, true);
|
||||
#endif
|
||||
held_lastBlock = Inventory_SelectedBlock;
|
||||
|
||||
Event_Register_(&GfxEvents.ProjectionChanged, NULL, OnProjectionChanged);
|
||||
|
Loading…
x
Reference in New Issue
Block a user