diff --git a/src/main.cpp b/src/main.cpp index 42fac3c..3b6f66c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1030,6 +1030,8 @@ patch(void) #endif #ifdef DEBUG if(gtaversion == VC_10){ +//extern void hackshit(void); +//hackshit(); // remove "%s has not been pre-instanced", we don't really care Nop(0x40C32B, 5); //MemoryVP::InjectHook(0x650ACB, RwTextureRead_VC); @@ -1051,6 +1053,9 @@ patch(void) Patch(0x58054D + 2, 0x94B210+4); Patch(0x58057D + 2, 0x94B210+8); + // disable Vsynch + Patch(0x6021EF + 1, 0); + // disable level load screens Nop(0x40E00E, 5); Nop(0x40E01C, 5); diff --git a/src/matfx.cpp b/src/matfx.cpp index 00bb722..7abd950 100644 --- a/src/matfx.cpp +++ b/src/matfx.cpp @@ -267,6 +267,7 @@ else RwD3D8SetTexture(texture, 0); else RwD3D8SetTexture(nil, 0); + RwD3D8SetPixelShader(0); RwD3D8SetVertexShader(inst->vertexShader); RwD3D8SetStreamSource(0, inst->vertexBuffer, inst->stride); RwD3D8SetIndices(inst->indexBuffer, inst->baseIndex); diff --git a/src/postfx.cpp b/src/postfx.cpp index a4e9e7b..9f4cce8 100644 --- a/src/postfx.cpp +++ b/src/postfx.cpp @@ -426,12 +426,12 @@ CMBlur::MotionBlurRender_mobile(RwCamera *cam, uint8 red, uint8 green, uint8 blu add[1] = green/1536.f; add[2] = blue/1536.f; }else{ - mult[0] = (red-64)/256.0f + 1.14f; - mult[1] = (green-64)/256.0f + 1.14f; - mult[2] = (blue-64)/256.0f + 1.14f; - add[0] = red/1536.f + 0.05f; - add[1] = green/1536.f + 0.05f; - add[2] = blue/1536.f + 0.05f; + mult[0] = (red-64)/256.0f + 1.4f; + mult[1] = (green-64)/256.0f + 1.4f; + mult[2] = (blue-64)/256.0f + 1.4f; + add[0] = red/1536.f - 0.05f; + add[1] = green/1536.f - 0.05f; + add[2] = blue/1536.f - 0.05f; } RwD3D9SetPixelShaderConstant(3, &mult, 1); RwD3D9SetPixelShaderConstant(4, &add, 1); diff --git a/src/skygfx.h b/src/skygfx.h index c8d5dbe..e4a6d2e 100644 --- a/src/skygfx.h +++ b/src/skygfx.h @@ -15,6 +15,8 @@ #include #include +//#define DEBUG + // want to use RwEngineInst instead of RwEngineInstance #undef RWSRCGLOBAL #define RWSRCGLOBAL(variable) \