Introduce the concept of a texture atlas und use it to speed up terrain rendering

Bug #1395628 reported by SirVer
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
widelands
Fix Released
Medium
Unassigned

Bug Description

This is a rendering improvement made possible through the removal of the sofware renderer.

Currently all terrain textures are loaded into their own GL surface. This is rather wasteful given that we have 198 texture images only - they fit in a 1024x1024 texture and that would mean we could render all terrains in one go (without mode switching). This would simplify and speed up terrain rendering a ton.

If we build a texture atlas class that can 2d binpack arbitrary images we can also reuse this for sprites (i.e. animations) and binpacking for packed animations (i.e. spritemaps).

Related branches

SirVer (sirver)
Changed in widelands:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → SirVer (sirver)
milestone: none → build19-rc1
Revision history for this message
GunChleoc (gunchleoc) wrote :

The rectangle program is screwed up - an offset error someplace I guess. Tested in Linux Mint.

Revision history for this message
SirVer (sirver) wrote :

Rectangles will be fixed with bug 1531114.

Changed in widelands:
status: Confirmed → Fix Committed
assignee: SirVer (sirver) → nobody
GunChleoc (gunchleoc)
tags: added: graphics
removed: graphic
GunChleoc (gunchleoc)
Changed in widelands:
status: Fix Committed → Fix Released
Revision history for this message
GunChleoc (gunchleoc) wrote :

Fixed in build19-rc1.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.