SEAL Forum Index SEAL
The SEAL Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Video Refresh Rates

 
Post new topic   Reply to topic    SEAL Forum Index -> Technical Issues
View previous topic :: View next topic  
Author Message
oyama26
Maintainer


Joined: 04 Jun 2003
Posts: 67
Location: Watsontown, PA

PostPosted: Mon Jun 30, 2003 10:21 pm    Post subject: Video Refresh Rates Reply with quote

Is there any conceivable way to change the video refresh rate? I don't know if maybe it could be done with allegro or if something would need to be done with the VESA driver. The programmers here would certainly know better than I if and how this could be done, or if something in the source code would need to be changed. All I know is the 60 Hz or whatever rate is the default is killin' my eyes. (I'm kind of a baby about refresh rates, sorry) Not a major problem, just wondering.
_________________
for open-source news and exclusive software
www.serenodesign.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Amos Vryhof
Administrator


Joined: 15 Oct 2001
Posts: 540
Location: United States

PostPosted: Tue Jul 01, 2003 6:39 pm    Post subject: Refresh rates Reply with quote

I am sure it's not implimented in Seal, but if your looking to refine the Seal 2 graphics routines (being the maintainer now, that is within your power) perhaps http://docs.mandragor.org/files/Common_libs_documentation/allegro/index008.html will help you?
_________________
Amos


[url=mailto:18238073@pager.icq.com]Msg@Home[/url]
[url=mailto:154644152@pager.icq.com]Msg@Work[/url]
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
oyama26
Maintainer


Joined: 04 Jun 2003
Posts: 67
Location: Watsontown, PA

PostPosted: Tue Jul 01, 2003 10:42 pm    Post subject: Reply with quote

Thanks for the link. I'm right on it. Screen flicker gives me a major headache, as I'm sure it does others, too. Plus, I can probably straighten out a few other things while I'm at it. I'm sure there will be a few other questions to follow as I delve into this, but thanks again.
_________________
for open-source news and exclusive software
www.serenodesign.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
orudge
Administrator


Joined: 07 Oct 2001
Posts: 1332
Location: United Kingdom

PostPosted: Fri Jul 04, 2003 9:40 am    Post subject: Reply with quote

From the Allegro manual:

Quote:

void request_refresh_rate(int rate);
Requests that the next call to set_gfx_mode() try to use the specified refresh rate, if possible. Not all drivers are able to control this at all, and even when they can, not all rates will be possible on all hardware, so the actual settings may differ from what you requested. After you call set_gfx_mode(), you can use get_refresh_rate() to find out what was actually selected. At the moment only the DOS VESA 3.0, X DGA 2.0 and some Windows DirectX drivers support this function. The speed is specified in Hz, eg. 60, 70. To return to the normal default selection, pass a rate value of zero.


So basically, stick:

request_refresh_rate(85);

or whatever before the set_gfx_mode line, and Allegro will try and use that refresh rate. There's no guarantee it'll succeed though, of course.
_________________
Owen Rudge
http://www.owenrudge.net/

Currently Playing (last time I was online, anyway):
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
oyama26
Maintainer


Joined: 04 Jun 2003
Posts: 67
Location: Watsontown, PA

PostPosted: Fri Jul 04, 2003 12:28 pm    Post subject: Reply with quote

That's what I had in mind. Do you happen to know which file set_gfx_mode is in, just to save me some time? I've also been looking into improving some of the other graphics routines, possibly adding a little animation to make it feel a bit smoother. Of course, I'm looking into providing better stability to the program as a whole primarily. I've got a lot to catch up on.
_________________
for open-source news and exclusive software
www.serenodesign.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
biggyp



Joined: 16 Oct 2001
Posts: 1473
Location: England, United Kingdom

PostPosted: Fri Jul 04, 2003 12:31 pm    Post subject: Reply with quote

i would suggest leaving anything cosmetic on the back burner for now, concentrating on stability and speed would be best.
_________________
http://www.theopencd.org/ - OpenSource for the Masses

Gallery

Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
oyama26
Maintainer


Joined: 04 Jun 2003
Posts: 67
Location: Watsontown, PA

PostPosted: Fri Jul 04, 2003 1:18 pm    Post subject: Reply with quote

Yeah, I know, the cosmetic stuff is just an afterthought. I like to try to take everything into account so that I can plan accordingly. I like strategy, and try to look a few steps ahead. Stability and speed are definitely my top priorities at this point.
_________________
for open-source news and exclusive software
www.serenodesign.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
orudge
Administrator


Joined: 07 Oct 2001
Posts: 1332
Location: United Kingdom

PostPosted: Wed Jul 09, 2003 12:18 pm    Post subject: Reply with quote

oyama26 wrote:
That's what I had in mind. Do you happen to know which file set_gfx_mode is in, just to save me some time? I've also been looking into improving some of the other graphics routines, possibly adding a little animation to make it feel a bit smoother. Of course, I'm looking into providing better stability to the program as a whole primarily. I've got a lot to catch up on.


If you haven't already found it, it's in src/alleg/newscr.c, line 917.
_________________
Owen Rudge
http://www.owenrudge.net/

Currently Playing (last time I was online, anyway):
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
oyama26
Maintainer


Joined: 04 Jun 2003
Posts: 67
Location: Watsontown, PA

PostPosted: Wed Jul 09, 2003 12:54 pm    Post subject: Reply with quote

Found it, thanks anyway. I'd like to start trying a few things, but I'm still sorting out my compiler issues. Hopefully when I get that worked out, it'll all fall into place. This whole compiler matter seems to be a common problem. I'll see what I can do about getting it to compile on a newer version of gcc, especially so that new developers can be more productive faster.
_________________
for open-source news and exclusive software
www.serenodesign.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
biggyp



Joined: 16 Oct 2001
Posts: 1473
Location: England, United Kingdom

PostPosted: Wed Jul 09, 2003 2:47 pm    Post subject: Reply with quote

you could try leon's compiler package at http://sealsystem.sourceforge.net/bgp/compiler/ it should be ready to use(well that's what he said)
_________________
http://www.theopencd.org/ - OpenSource for the Masses

Gallery

Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
w_w_n_uk



Joined: 25 Oct 2001
Posts: 177
Location: England, Hemel Hempstead

PostPosted: Fri Jul 11, 2003 3:22 am    Post subject: Reply with quote

my compiler package is designed for seal apps only it cant produce fully working dos programs only seal. but it dose use the latested ver of djgpp.
_________________
leon pegg
W_W_N_UK@YAHOO.CO.UK
When Hell is full, the dead will walk the earth...
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
_xduffy_
Administrator


Joined: 15 Mar 2002
Posts: 894
Location: Sweden

PostPosted: Fri Jul 11, 2003 3:53 am    Post subject: Reply with quote

That's interesting...
_________________
http://xduffystuff.sourceforge.net/Desktop/
www.xduffy.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Iamryan2002



Joined: 09 Apr 2002
Posts: 525
Location: San Diego, California United States

PostPosted: Fri Jul 11, 2003 2:26 pm    Post subject: Reply with quote

if someone will add me to the project, i have complete djgpp that works all zipped on my computer.. i can upload them.. it even has allegro..

that way it is easier to work with..

now that i have cable, it will make things a lot easier

sf login: digibliss
_________________
HybridOS: Maintainer.

E-Mail: DigitalBliss2003@cs.com
MSN: digitalbliss2003@hotmail.com
AIM: DigitalBliss2003

Questions? Contact Me!
Back to top
View user's profile Send private message Send e-mail AIM Address MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    SEAL Forum Index -> Technical Issues All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group