3DS/GameCube/Wii: Increase max texture width/height for little bit faster world rendering

This commit is contained in:
UnknownShadow200 2024-03-30 09:51:57 +11:00
parent 174005d6bf
commit 8c62223f90
6 changed files with 21 additions and 12 deletions

View File

@ -20,6 +20,7 @@ jobs:
export BLOCKSDSEXT=/opt/blocksds/external
make ds
# otherwise notify_failure doesn't work
- name: Install curl when necessary
if: ${{ always() && steps.compile.outcome == 'failure' }}
@ -30,9 +31,10 @@ jobs:
with:
NOTIFY_MESSAGE: 'Failed to compile DS build'
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
- uses: ./.github/actions/upload_build
if: ${{ always() && steps.compile.outcome == 'success' }}
with:
SOURCE_FILE: 'classicube.nds'
DEST_NAME: 'classicube.nds'
DEST_NAME: 'classicube.nds'

View File

@ -26,6 +26,11 @@ jobs:
make n64
# otherwise notify_failure doesn't work
- name: Install curl when necessary
if: ${{ always() && steps.compile.outcome == 'failure' }}
run: apt install curl
- uses: ./.github/actions/notify_failure
if: ${{ always() && steps.compile.outcome == 'failure' }}
with:
@ -37,4 +42,4 @@ jobs:
if: ${{ always() && steps.compile.outcome == 'success' }}
with:
SOURCE_FILE: 'ClassiCube-n64.z64'
DEST_NAME: 'ClassiCube-n64.z64'
DEST_NAME: 'ClassiCube-n64.z64'

View File

@ -87,7 +87,7 @@ struct EntityVTABLE {
/* And therefore trying to access the ModelVB Field in entity struct instances created by the CEF plugin */
/* results in attempting to read or write data from potentially invalid memory */
#define ENTITY_FLAG_HAS_MODELVB 0x02
/* Whether in classic mode, to slightly adjust this entity downwards when rendering it *
/* Whether in classic mode, to slightly adjust this entity downwards when rendering it */
/* to replicate the behaviour of the original vanilla classic client */
#define ENTITY_FLAG_CLASSIC_ADJUST 0x04

View File

@ -148,8 +148,9 @@ static GfxResourceID white_square;
void Gfx_Create(void) {
if (!Gfx.Created) InitCitro3D();
Gfx.MaxTexWidth = 512;
Gfx.MaxTexHeight = 512;
Gfx.MaxTexWidth = 1024;
Gfx.MaxTexHeight = 1024;
Gfx.MaxTexSize = 512 * 512;
Gfx.Created = true;
gfx_vsync = true;

View File

@ -50,8 +50,9 @@ static void InitGX(void) {
void Gfx_Create(void) {
if (!Gfx.Created) InitGX();
Gfx.MaxTexWidth = 512;
Gfx.MaxTexHeight = 512;
Gfx.MaxTexWidth = 1024;
Gfx.MaxTexHeight = 1024;
Gfx.MaxTexSize = 512 * 512;
Gfx.Created = true;
gfx_vsync = true;
@ -282,7 +283,7 @@ cc_bool Gfx_WarnIfNecessary(void) { return false; }
GfxResourceID Gfx_CreateIb2(int count, Gfx_FillIBFunc fillFunc, void* obj) {
//fillFunc(gfx_indices, count, obj);
// not used since render using GX_QUADS anyways
return 1;
return (void*)1;
}
void Gfx_BindIb(GfxResourceID ib) { }
@ -552,4 +553,4 @@ void Gfx_DrawVb_IndexedTris(int verticesCount) {
void Gfx_DrawIndexedTris_T2fC4b(int verticesCount, int startVertex) {
Draw_TexturedTriangles(verticesCount, startVertex);
}
#endif
#endif

View File

@ -136,7 +136,7 @@ void Gfx_RecreateContext(void) {
}
cc_bool reducedPerformance;
static void TickReducedPerformance(void) {
static CC_INLINE void TickReducedPerformance(void) {
Thread_Sleep(100); /* 10 FPS */
if (reducedPerformance) return;
@ -144,7 +144,7 @@ static void TickReducedPerformance(void) {
Chat_AddOf(&Gfx_LowPerfMessage, MSG_TYPE_EXTRASTATUS_2);
}
static void EndReducedPerformance(void) {
static CC_INLINE void EndReducedPerformance(void) {
if (!reducedPerformance) return;
reducedPerformance = false;
Chat_AddOf(&String_Empty, MSG_TYPE_EXTRASTATUS_2);