Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old July 31, 2011, 12:21   #21
artes
Adept
 
Join Date: Jun 2011
Location: In his house at R'lyeh
Posts: 113
artes is on a distinguished road
OpenGL is cool, and there are good tutorials on the Internet that makes learning it easy.
artes is offline   Reply With Quote
Old July 31, 2011, 13:07   #22
Tobias
Adept
 
Tobias's Avatar
 
Join Date: Dec 2009
Posts: 172
Tobias is on a distinguished road
Quote:
Originally Posted by Omnipact View Post
Removing the stats section from the left of the screen is (probably) quite trivial, and there is a sub-window that you can bring up with the same info. The message line is somewhat more insiduous and deep-rooted in its implementation.
Remember to increase the number of subwindows, when you change this.
When I run the borg, I already have less subwindows then I need.

I do like the sdl-version. Having only one window makes it play nicer with buggy and exotic window manager.

I never look at the message line. Just use the log-window.

But if you look at LPs of the game, it looks like there are a lot of people who use no subwindows at all. And very few people ever find suwbwindow specific bugs, so it is probably even uncommon among the forum goers.
__________________
My Angband videos : http://www.youtube.com/view_play_lis...385E85F31166B2
Tobias is offline   Reply With Quote
Old October 23, 2011, 01:13   #23
Therem Harth
Knight
 
Therem Harth's Avatar
 
Join Date: Jan 2008
Location: New England winter
Posts: 908
Therem Harth is on a distinguished road
/* Resurrected! */

Okay, I'm trying once again to revitalize the SDL interface. But as usual I'm running into problems.

The main problem is sluggishness. Even with shimmer and stuff turned off, rendering is very slow compared to X11 or GTK2.

It looked to me like there were several reasons for this...
1. Truetype fonts are used. Vanilla uses bitmap fonts.
2. The fonts are rendered blended, which is reputedly slow.
3. The fonts are antialiased.
4. Hardware surface is used when available, possibly leading to laggy copies between video and main RAM.

(1) I'm not touching yet, because Truetype fonts seem easier to deal with via SDL_ttf.

(2) I experimented with changing, using solid rendering instead (TTF_RenderGlyph_Solid()). But far from speeding the game up, this slowed it down, by roughly 50% if my eyes are anything to go by - and with max CPU usage when the character is running! I have to say this stumps me completely. OTOH, the solid fonts are much cleaner and more readable than blended ones.

(3) I tried to change, but old versions of SDL_ttf (e.g. the one used by Debian Stable) don't allow this, so I gave up for compatibility reasons.

(4) I changed so that the game uses only software surfaces, but it didn't seem to make any difference.

The only thing that seems to improve rendering speed visibly is disabling shimmer effects, and this doesn't work too well in e.g. swamps where there's a lot of mixed terrain in the field of vision. And that's a workaround anyway, not a real fix.

Are there any other things I should look at re the performance problems?
Therem Harth is offline   Reply With Quote
Old October 24, 2011, 00:06   #24
Therem Harth
Knight
 
Therem Harth's Avatar
 
Join Date: Jan 2008
Location: New England winter
Posts: 908
Therem Harth is on a distinguished road
Bah, forget it. The codebase for the SDL interface is clearly beyond my skills to turn into anything on par with the X11 one.

Future work will focus instead on improving the curses interface. Eventually, if I get good enough with C, I might try writing an interface with OpenGL and GLUT... But don't count on it.
Therem Harth is offline   Reply With Quote
Old October 24, 2011, 14:53   #25
ogozi4
Rookie
 
Join Date: Oct 2011
Posts: 6
ogozi4 is on a distinguished road
I think OpenGL is a more preferable option.
ogozi4 is offline   Reply With Quote
Old October 25, 2011, 03:35   #26
BreathesFire
Rookie
 
Join Date: Aug 2011
Posts: 9
BreathesFire is on a distinguished road
I am in the process of building a Windows OpenGL port, no guarantees though.
BreathesFire is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
NPP sdl Nick Variants 10 July 15, 2010 06:23
Angband under X11 Magnate Vanilla 3 December 13, 2009 21:56
Down with the SDL! Pete Mack Development 0 August 13, 2009 04:26
SDL sound Nick Development 1 July 16, 2009 21:14
Ubuntu SDL Help? benhamill Vanilla 12 February 24, 2009 21:19


All times are GMT +1. The time now is 16:50.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.