VIDEO - Experimental VGA patch (vgaonly commited)

Here you can discuss the development of patches.

VIDEO - Experimental VGA patch (vgaonly commited)

Postby h-a-l-9000 » 2007-5-26 @ 23:55

It emulates the video drawing as well as the palette and a few other things scanline by scanline. This is mostly needed by demo software but also by a few games. Some parts of it are hackish but the new output looks nice. The internal screenshot / video functions cannot capture it properly.

Build: http://home.arcor.de/h-a-l-9000/test/dosbox_demovga.zip

To enable, set machine=demovga in dosbox.conf.
It also adds the parameter ibmtiming under [dosbox] which might fix horizontal scrolling problems for certain games/demos (true/false).
You do not have the required permissions to view the files attached to this post.
h-a-l-9000
DOSBox Author
 
Posts: 4512
Joined: 2005-2-23 @ 00:14

Re: Experimental VGA patch

Postby Kippesoep » 2007-5-27 @ 04:01

Very nice. Might be useful with CGA too (background colour, in particular). That would help tremendously with Frogger (which changes background colour to blue for the water part at the top of the screen).
My site: Ramblings on mostly tech stuff.
User avatar
Kippesoep
Oldbie
 
Posts: 1015
Joined: 2005-5-04 @ 22:36
Location: Netherlands

Re: Experimental VGA patch

Postby wd » 2007-5-27 @ 07:23

Yep fine thing (though it looks a bit slow :) did you measure the impact)
and nice screenshots!
Kellogs comes to my mind, uses pel mask changing to draw some part
of the screen blue (water level).
wd
DOSBox Author
 
Posts: 10818
Joined: 2003-12-03 @ 21:23

Re: Experimental VGA patch

Postby IIGS_User » 2007-5-27 @ 08:15

Yeah, I see. In previous versions of DOSBox, the sky always was dark blue. Now, in 0.70, ithe sky flickers between dark blue and blue.
You do not have the required permissions to view the files attached to this post.
Klimawandel.
User avatar
IIGS_User
Oldbie
 
Posts: 882
Joined: 2007-3-14 @ 19:59
Location: native_lang=ger

Re: Experimental VGA patch

Postby h-a-l-9000 » 2007-5-27 @ 13:38

> Kellogs comes to my mind, uses pel mask changing to draw some part
> of the screen blue (water level).

That's why I brought it up recently ;) can't get it to run.
viewtopic.php?t=12322

The impact is not as much as I thought it would be. I can still play Terminal Velocity at ~27fps at fullscreen (normally ~30fps).

Frogger... I'll have a look if I find it.

I can add more screenshots if you like :)
h-a-l-9000
DOSBox Author
 
Posts: 4512
Joined: 2005-2-23 @ 00:14

Re: Experimental VGA patch

Postby wd » 2007-5-27 @ 13:50

Maybe make some videos :)

Got to see about kellogs...
wd
DOSBox Author
 
Posts: 10818
Joined: 2003-12-03 @ 21:23

Re: Experimental VGA patch

Postby h-a-l-9000 » 2007-5-27 @ 14:09

> Maybe make some videos Happy

Can't capture the palettes :(
1+1=10
h-a-l-9000
DOSBox Author
 
Posts: 4512
Joined: 2005-2-23 @ 00:14

Re: Experimental VGA patch

Postby wd » 2007-5-27 @ 14:30

Kellogs works in rc2 but not in rc3 btw.
wd
DOSBox Author
 
Posts: 10818
Joined: 2003-12-03 @ 21:23

Re: Experimental VGA patch

Postby h-a-l-9000 » 2007-5-27 @ 14:43

0.65 rc2 ?
1+1=10
h-a-l-9000
DOSBox Author
 
Posts: 4512
Joined: 2005-2-23 @ 00:14

Re: Experimental VGA patch

Postby wd » 2007-5-27 @ 14:52

0.66rc2
wd
DOSBox Author
 
Posts: 10818
Joined: 2003-12-03 @ 21:23

Re: Experimental VGA patch

Postby h-a-l-9000 » 2007-5-27 @ 15:02

hmm no it doesn't? Any special settings?
1+1=10
h-a-l-9000
DOSBox Author
 
Posts: 4512
Joined: 2005-2-23 @ 00:14

Re: Experimental VGA patch

Postby wd » 2007-5-27 @ 15:09

Damdam...
joysticktype=none
wd
DOSBox Author
 
Posts: 10818
Joined: 2003-12-03 @ 21:23

Re: Experimental VGA patch

Postby h-a-l-9000 » 2007-5-27 @ 15:42

It doesn't even bother about timed=true/false...
You do not have the required permissions to view the files attached to this post.
h-a-l-9000
DOSBox Author
 
Posts: 4512
Joined: 2005-2-23 @ 00:14

Re: Experimental VGA patch

Postby h-a-l-9000 » 2007-5-27 @ 16:18

WOOT they use port 0x61 to have some control on system timer 2.
I knew such a game exists ;)
1+1=10
h-a-l-9000
DOSBox Author
 
Posts: 4512
Joined: 2005-2-23 @ 00:14

Re: Experimental VGA patch

Postby wd » 2007-5-27 @ 16:21

Kellogs is a masterpiece of funky programming, wonder that it displays
anything at all in dosbox...
wd
DOSBox Author
 
Posts: 10818
Joined: 2003-12-03 @ 21:23

Re: Experimental VGA patch

Postby h-a-l-9000 » 2007-5-27 @ 19:59

Frogger gets its timing wrong...
You do not have the required permissions to view the files attached to this post.
h-a-l-9000
DOSBox Author
 
Posts: 4512
Joined: 2005-2-23 @ 00:14

Re: Experimental VGA patch

Postby augnober » 2007-5-31 @ 09:35

Nice work. I was thinking about this earlier (a little over a year ago, I guess) when I was making a patch to synchronize (/substitute) the internal emulation vertical refresh with the host display's vertical refresh (to remove shear, get smooth scrolling, etc. in certain apps). It would be interesting to try and get both of those changes to work together -- could lead to the feeling of a very real machine.

My patch didn't work out so well in the end. It worked great in Windows, but I wasn't able to find a reliable way to detect the retrace status in Linux.. and so I ended up dropping it after the workarounds for this got too complicated.
augnober
Member
 
Posts: 115
Joined: 2004-10-03 @ 02:23

Re: Experimental VGA patch

Postby DosFreak » 2007-6-26 @ 12:14

Wow. Totally missed this.

Should this be in the DosBox patches section?
Game Acronym List
DosBox CVS Builds
DosBox Feature Request Thread
DosBox FAQ
PC Game Compatibility List
"Who's got time to read all the way down to the bottom of an email?"
User avatar
DosFreak
l33t++
 
Posts: 9541
Joined: 2002-6-30 @ 16:35
Location: Your Head

Re: Experimental VGA patch

Postby augnober » 2007-6-26 @ 15:01

DosFreak:
I think it belongs in the patches section. I'd been wondering about that (I'd like to see this get adopted by some builds, or perhaps make it into cvs).
augnober
Member
 
Posts: 115
Joined: 2004-10-03 @ 02:23

Re: Experimental VGA patch

Postby h-a-l-9000 » 2007-6-26 @ 15:31

Should this be in the DosBox patches section?


As you like.

or perhaps make it into cvs).


too hackish at some places
h-a-l-9000
DOSBox Author
 
Posts: 4512
Joined: 2005-2-23 @ 00:14

Next

Return to DOSBox Patches

Who is online

Users browsing this forum: No registered users and 1 guest