游戏中图形部分主要影响计算机的两个系统 CPU 和 GPU,优化首先要做的是找出哪一部分的性能影响,GPU 和 CPU 优化的方式是不一样的(甚至是对立的,例如很常见的,当在优化 CPU 的时候让 GPU 做更多的计算,反之亦然)。
常见瓶颈和检查方式:
1. GPU 经常限制于 填充率(fillrate)或者内存带宽(memory bandwidth)。
降低显示分辨率后运行游戏,如果游戏运行更快,那么瓶颈在于 GPU 的填充率(fillrate)。
2. CPU 经常限制于需要渲染的 Batches 数量。
在渲染统计窗口(Rendering Statistics )检查“Batches”数量,渲染的 Batches 数量越多,越消耗 CPU 性能。
非常见瓶颈:
1. GPU 处理大量顶点,在确保良好性能的可接受的顶点数量下,依赖于 GPU 和顶点着色器(Vertex Shaders)的复杂性。
一般来讲,移动设备的顶点数量不超过 100,000 个。
PC 上甚至可以处理数百万顶点,但最好通过优化尽可能保持最低的顶点数量。
2. CPU 处理大量顶点,可能是蒙皮网格,布料模拟,粒子,或者其他游戏对象和网格体。
在不压缩游戏质量的情况下,尽可能保持最低数量的顶点。详细见 CPU 优化(CPU Optimization )
3. 如果渲染不是 CPU 或 GPU 的问题,那么有可能是其他的问题,如脚本或物理引擎。使用Unity分析器(Unity Profiler)定位问题。
相关推荐
Graphics Shaders: Theory and Practice is intended for a second course in computer graphics at the undergraduate or graduate level, introducing shader programming in general, but focusing on the GLSL ...
A Graphics Performance tool.pdfA Graphics Performance tool.pdfA Graphics Performance tool.pdfA Graphics Performance tool.pdfA Graphics Performance tool.pdfA Graphics Performance tool.pdfA Graphics ...
Computer Graphics: Using OpenGL cppComputer Graphics: Using OpenGL cppComputer Graphics: Using OpenGL cppComputer Graphics: Using OpenGL cppComputer Graphics: Using OpenGL cppComputer Graphics: Using ...
The OPenGL Graphics System:Specification(Version 1.2)
google io 2013资料 android graphics performance
Interactive Computer Graphics:A.Top-Down Approach with Shader-Based OpenGL(6th.2011)
Graphics_Pipeline_Performance
EasyX Graphics Library 是针对 Visual C++ 的免费绘图库,支持 VC6.0 ~ VC2019,简单易用,学习成本极低,应用领域广泛。目前已有许多大学将 EasyX 应用在教学当中。
Interactive computer graphics : a top-down approach with WebGL ,7th Edition Edward Angel, University of New Mexico, Dave Shreiner, ARM, Inc.
Computer Graphics: From Pixels to Programmable Graphics Hardware explores all major areas of modern computer graphics, starting from basic mathematics and algorithms and concluding with OpenGL and ...
OpenGL Build High Performance Graphics 英文epub 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除
每一个现代PC都能够产生高质量的计算机生成图像,大部分是以视频游戏以及虚拟现实环境的形式。整个动画工业已经从其高端(例如Pixar电影)转移到了孩子们的电视机前。对于实拍电影,视觉特效领域也已经发生了...
Opengl Build High Performance Graphics 英文无水印pdf pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请...
This introduction to 3D computer graphics emphasizes fundamentals and the mathematics underlying computer graphics, while also covering programming techniques using OpenGL, a platform-independent ...
非扫描版,高清,带书签
交互式计算机图形学——基于WEBGL的自顶向下方法 第7版,Interactive Computer Graphics:A Top-Down Approach with WebGL (7th Edition) 英文版
Stanford Graphics:美国斯坦福大学很好用的数据处理软件Stanford Graphics,可以利用数据完美作图。 安装说明:在0文件夹里选择安装INSTALLv.EXE文件,出现窗口提示的时候,依次输入1、2、3、4即可,输入四次后,...
图形着色器-理论与实践.2nd的英文版,内容不错,推荐对GLSL感兴趣的翻看一下
Games Programming with Java and Java 3D.pdf
Title: Computer Graphics Through OpenGL: From Theory to Experiments, 3rd Edition--true PDF Author: Sumanta Guha Length: 760 pages Edition: 3 Language: English Publisher: Chapman and Hall/CRC ...