by Yoda » Apr 22, 2001 @ 10:04pm
Alright, here's what you have to do.<br><br>Add these lines to quakedef.h:<br><br>#ifdef SH3<br>#define DISABLE_OPTIMIZATION optimize("g",off)<br>#define ENABLE_OPTIMIZATION optimize("g",on)<br>#else <br>#define DISABLE_OPTIMIZATION<br>#define ENABLE_OPTIMIZATION<br>#endif<br><br>Then in d_polyse.c add:<br><br>#pragma DISABLE_OPTIMIZATION<br><br>right before:<br><br>void D_PolysetRecursiveTriangle (...)<br><br>and:<br><br>#pragma ENABLE_OPTIMIZATION<br><br>after the closing bracket.<br><br>Do the same for R_ClipEdge in r_draw.c, and Mod_SetParent in model.c<br><br>This will allow you to compile a Release build, with whatever optimization settings you wish.<br><br>--Yoda<br>PlanetUnreal<br><br>