当前位置:网站首页>CryEngine3 调试Shader方法
CryEngine3 调试Shader方法
2022-07-29 05:08:00 【longlongway2012】
CryEngine3 可以使用GPA RenderDoc NSight等工具进行Shader调试,前提是要开启CryEngine的Shader调试模式具体方法如下:
1. 开启Shader编辑模式:
在System.cfg 或Editor.cfg 添加如下变量参数:
sys_PakPriority = 0
r_reloadshaders = 1
r_ShadersEditing = 1
此时,可以加载Shader源码,而不是加载shadercache.pak,加载源码还需要将Shader.pak解压缩到同级目录。【ref】
2. 删除缓存目录
删除shader中的缓存目录CryEngine3 和shaders原目录在一块,CryEngineV之后默认在:C:\Users\Administrator\Saved Games\gamezero\shaders\cache
3. 配置shader编译服务器 :【ref】
r_ShadersRemoteCompiler=1
r_ShaderCompilerServer=127.0.0.1
r_ShaderCompilerPort=614534. 设置shader调试模式 :
r_ShadersDebug = 3r_ShadersDebug
DUMPTODISK
Enable special logging when shaders become compiled
Usage: r_ShadersDebug [0/1/2/3]
1 = assembly into directory Main/{Game}/shaders/cache/d3d9
2 = compiler input into directory Main/{Game}/testcg
3 = compiler input with debug information (useful for PIX etc./{Game}/testcg_1pass
Default is 0 (off)
边栏推荐
猜你喜欢

How to solve the problem of configuring the progress every time Office2010 is opened?

【2022新生学习】第三周要点

Google GTEST event mechanism

自贸经济中架起的“隐形桥梁”:国货精品与中国AI力量

深度学习刷SOTA的一堆trick

Arfoundation starts from zero 9-ar anchor

Database course design of online assistant teaching platform for high school chemistry

Solution | get the relevant information about the current employees' highest salary in each department |

Apache POI implements excel import, read data, write data and export

C语言宏#define命令练习
随机推荐
7.1-default-arguments
小白高薪捷径-Qt开发游戏—贪吃蛇
VirtualBox has expanded the capacity of virtual hard disk (without modifying the original data)
How mongodb inserts, deletes and updates documents
Functions in MySQL statements
Arfoundation starts from scratch 3- create an arfoundation project
Deadlock analysis using jstack, jconsole, and jvisualvm
Self join and joint query of MySQL
【文件下载】Easyexcel快速上手
On AspectJ framework
ARFoundation入门教程10-平面检测和放置
Qt版的贪食蛇游戏项目
How to add a map to the legendary server
CMake 设置vs启动运行环境路径
向往的开源之多YOUNG新生 | 从开源到就业的避坑指南来啦!
那个准时上下班,从不愿意加班加点的人,在我前面升职了...
Google gtest事件机制
The method and detailed code of automatically pop-up and QQ group when players visit the website
AttributeError: ‘module‘ object has no attribute ‘create_connection‘
How to install Office2010 installation package? How to install Office2010 installation package on computer