FreeOrion

Forums for the FreeOrion project
It is currently Mon May 20, 2013 4:50 am

All times are UTC




Post new topic Reply to topic  [ 50 posts ]  Go to page Previous  1, 2, 3, 4
Author Message
 Post subject: Re: Texture rotation
PostPosted: Tue Mar 18, 2008 5:08 pm 
Offline
Design & Graphics Lead
User avatar

Joined: Sat Sep 23, 2006 7:09 pm
Posts: 3693
Location: USA — midwest
Flatline wrote:
Tried it. On my PC I get 30FPS at any zoom level

what were your FPS with the 256x256 textures?

_________________
—• Read this First before posting Game Design Ideas!
—• Design Philosophy

—•— My Ideas, Organized —•— Get an Avatar —•— Acronyms —•—


Top
 Profile  
 
 Post subject: Re: Texture rotation
PostPosted: Tue Mar 18, 2008 5:40 pm 
Offline
Graphics Lead Emeritus
User avatar

Joined: Mon Mar 08, 2004 6:17 pm
Posts: 1933
Location: 52°16'N 10°31'E
Flatline wrote:
Tried it. On my PC I get 30FPS at any zoom level, and the quality is perfect.
There's still a lot of room for improvements (my CPU is almost at 100% all the time), but it's a good step in the right direction :))
(I'm on a dual monitor setup, so I'm not 100% sure that my NVidia uses 3D acceleration... I'll try this at home and see if the performances get better).

Could you please provide screenshots on multiple zoom levels?


Top
 Profile  
 
 Post subject: Re: Texture rotation
PostPosted: Tue Mar 18, 2008 7:02 pm 
Offline
Programming, Design, and De Facto Lead
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 7887
Location: Vancouver, BC
eleazar wrote:
Flatline wrote:
Tried it. On my PC I get 30FPS at any zoom level

what were your FPS with the 256x256 textures?

I went from 11 FPS with 256x256 to ~20 FPS with 128x128.

The CPU use still seems to max out though, which is rather undesirable.

pd wrote:
Could you please provide screenshots on multiple zoom levels?

See viewtopic.php?f=10&t=2111&p=30581#p30581


Top
 Profile  
 
 Post subject: Re: Texture rotation
PostPosted: Tue Mar 18, 2008 7:28 pm 
Offline
Programming Lead Emeritus
User avatar

Joined: Thu Jun 26, 2003 1:33 pm
Posts: 1092
The MapWnd code needs to be essentially rewritten from the ground up using VBOs (vertex buffers that reside on the video card). Instead of using GG::StaticGraphics, the textures should all be rendered from a single buffer, one texture at a time (i.e. all instances of the first texture used, then all instances of the next, etc.).

The starlanes, fleet lines, etc., could similarly all be rendered using one function call each, if there were a buffer set up properly with all the vertices in it beforehand.

I'm going to work on this very soon.


Top
 Profile  
 
 Post subject: Re: Texture rotation
PostPosted: Tue Mar 18, 2008 7:31 pm 
Offline
Space Squid
User avatar

Joined: Tue Jan 29, 2008 2:06 pm
Posts: 64
Location: Oxford (UK)
eleazar wrote:
Flatline wrote:
Tried it. On my PC I get 30FPS at any zoom level

what were your FPS with the 256x256 textures?


Around 20 at normal zoom, 40 at max zoom in, 15 or lower at max zoom out (with a peak of 5fps).

_________________
The only difference between a suicide and a martyrdom is press coverage.
- Chuck Palahniuk (Survivor)

Ubuntu 7.10/Windows Vista/Windows XP (VMWare)/Windows NT 4 (VMWare) on Intel Centrino Duo T5500@1.66GHz with NVidia GeForce GO 7600


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 50 posts ]  Go to page Previous  1, 2, 3, 4

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group