Ogre rendering optimization experience (1)-Preface

Source: Internet
Author: User

Efficiency is an inevitable topic for commercial online games. In order to leave more space for the client logic, the rendering module should be as efficient as possible.

Let's just talk about the rendering Optimization of ogre. Take the familiar tianlong Babu as an example.

Tianlong, a popular online versionCodeThe rendering of ogre and cegui has serious performance problems,

Ogre:

The implementation of terrain, a tile, is optimized in batches only by material, and the camera is not cropped by material, resulting in a lot of increase in the number of game views

Static object merging is totally incorrect. Like terrain, only batch cropping is optimized without camera cropping.

Cegui:

Because cegui has a defect in the font re-painting process, the cached font is useless. Each frame will calculate the position and layout, which is less efficient. Of course, there are some ways to improve it,

For example, a normal font can be cached as an image. The best way is to port the image to 0.75, which improves the efficiency by N times.

Cegui I am too lazy to talk about, just talk about the optimization of the Ogre part.

 

This article from the csdn blog, reproduced please indicate the source: http://blog.csdn.net/qq18052887/archive/2011/03/25/6278608.aspx

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.