beyond3d论坛的Humus,为我们带来将ATi GPU Doom3性能提升40%的方法,根据Humus的方法,我们需要修改Doom3 pak000.pk4压缩包当中的渲染文件,具体方法如下:
1、用WinRAR打开Doom3 pak000.pk4压缩包,在winrar文件浏览框当中找到interaction.vfp文件,用记事本打开interaction.vfp文件。
2、在interaction.vfp当中找到以下代码: PARAM subOne = { -1, -1, -1, -1 }; PARAM scaleTwo = { 2, 2, 2, 2 }; 在这段代码下面加上:PARAM specExp = { 16, 0, 0, 0 }; ,现在这段代码应该是:
PARAM subOne = { -1, -1, -1, -1 }; PARAM scaleTwo = { 2, 2, 2, 2 }; PARAM specExp = { 16, 0, 0, 0 };
3、将以下代码: # perform a dependent table read for the specular falloff TEX R1, specular, texture[6], 2D; 修改为: # perform a dependent table read for the specular falloff # TEX R1, specular, texture[6], 2D; POW R1, specular.x, specExp.x;
4、保存interaction.vfp文件,Winrar会询问是否更新Doom3 pak000.pk4压缩包当中的文件,选择是。至此,修改完成。
根据Humus自己测试,在1280x1024分辨率下,修改前的fps是34fps,修改之后的fps是48fps。
|