Tile Engine Problem

Started by
2 comments, last by ji yan 21 years, 8 months ago
Hello everyone: I am developing a game with 2d background and 3d characters running on it. I decided to use a tile engine for the 2d part. However, when testing the program, rendering a 10*10 tile constituted map seems to be intolerably slow while rendering a 4*4 one is completely normal. I only rendered one layer, and used only one texture which is split into 4 parts. Is my situation a common case for tile engine? Are they slow for rendering? Is there anyway to remedy this? Thanks for any advice in advance Ji
Advertisement
u''d better post some code
the render() e.g.
Textures need to be powers of 2. 2,4,8,16,32,64,128,256, are all valid powers of 2. 10 however is not a power of 2. This is most likely the reason your having slow down problems.
When using OpenGL for my first tile engine I found that only rendering the tiles that are currently on the screen dramaticly improoved speed.

This topic is closed to new replies.

Advertisement