VOGONS


DOSBox video bug...

Topic actions

  • This topic is locked. You cannot reply or edit posts.

First post, by Sephiroth

User metadata
Rank Member
Rank
Member

Apparently the screen-saver can kick in while playing a game in DOSBox. This causes odd behavior and sometimes flashing at the top and bottom of the screen when a 320x200 game is stretched to 640x400 while in 640x480 resolution, for example. This happens in DirectDraw and OpenGL, but I haven't tested it in the other modes.

486 Launcher v2.0 is now under development!

Reply 2 of 30, by Sephiroth

User metadata
Rank Member
Rank
Member

Yes, in fullscreen. I play all of my old games in fullscreen. I have been meaning to post this bug for a while now, but forgot to. It causes many games to have issues and some can even desynchronize if playing a network game and it comes on.

486 Launcher v2.0 is now under development!

Reply 5 of 30, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

http://www.libsdl.org/faq.php?action=listentr … s&category=9#90
http://www.libsdl.org/release/changes-1.2.html

Not sure what version of SDL DOSBox 0.72 is using...

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32

Reply 6 of 30, by Sephiroth

User metadata
Rank Member
Rank
Member

I don't care what the notes say, it's broken. This happens on every computer and laptop I have run DOSBox 0.72 on. Want to test it? Simple! Set your screensaver to 1min, start DOSBox and sit back for a minute. Any questions?

486 Launcher v2.0 is now under development!

Reply 8 of 30, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

Not broken for me.

Screensaver set to 1 minute.

Launched DOSBox.
Waited 1 min, 10 seconds.
Screensaver kicked in.
Pressed a key.
Exited DOSBox.

Launched DOSBox.
Pressed ALT-ENTER (fullscreen).
Waited 2 min or more.
No screensaver.
Exited DOSBox

Changed config to output=ddraw.

Launched DOSBox.
Pressed ALT-ENTER (fullscreen).
Waited 2 min or more.
No screensaver.
Pressed ALT-ENTER (windowed).
Waited 1 min or so.
Screensaver kicked in.
Pressed a key.
Exited DOSBox.

This with stock DOSBox 0.72, WinXP Pro/SP2.

2007-08-26  20:14         3 200 000 dosbox.exe
2007-08-17 19:44 331 776 SDL.dll

Any answers?

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32

Reply 9 of 30, by Sephiroth

User metadata
Rank Member
Rank
Member

Well it hasn't worked that way on the dozen or so machines I have used it on, including this one. I suspect you may have a custom build and not realize it. I suppose I'll have to prove this FACT as well. I'll get the camcorder and record my INI settings being stock, stock DOSBox 0.72, and then show it with a screensaver. Note that if it kicks in while windowed, I could care less because I don't play windowed, but playing fullscreen and having the screensaver kick in is very annoying.

486 Launcher v2.0 is now under development!

Reply 11 of 30, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

It wasn't for fun that I posted the dates and sizes of my dosbox.exe and SDL.dll. If you had cared to check yours we would quickly discover if we are indeed using the same versions.

For your entertainment, I am now also posting the MD5 checksums. That should definitely show if we are using the same versions:

cacb05c27202c3ab5b727867ef57fe32 *dosbox.exe
097de590e613382fdd0d4ea289799867 *SDL.dll
14e5d3cf6b015066e6c9b04df8556e7c *DOSBox0.72-win32-installer.exe

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32

Reply 13 of 30, by Sephiroth

User metadata
Rank Member
Rank
Member

I did read what he wrote. He is stating that the screensaver is not kicking in during fullscreen operation, which is the exact opposite of every machine that I have ever used DOSBox on. This is mainly towers, but also several laptops. All are running XP SP2 with the exception of one or two, that use SP3. I can go into system specs if you want to blame that, but I think we both know that multiple systems with the same symptoms including several college machines proves that it isn't hardware-dependent.

Again, the problem that I am experiencing is that the screensaver DOES kick in during fullscreen operation. Windowed mode does not bother me at all because I don't use it except when debugging an old game or application. The screensaver kicks in during fullscreen operation in both OpenGL and DirectDraw modes. The reason that I am still posting is because I have been told that it does not behave this way when in fact it does.

*EDIT*

H-A-L, I am using the default screensaver that displays "Windows XP Professional", not a custom one, nor do i have custom screensavers installed. I keep my systems minimalistic to avoid problems while gaming, and as such have no extra services and have even disabled ones that I do not need, such as DNS and "Help And Support".

Max, I have the exact same filesizes as you. This definitely proves the existence of a bug if it chooses to show the screensaver on most systems but not others. That was the point in this thread to begin with, because I don't drop by and post problems for no reason. Oh and this problem occurs on nVidia, ATI, and Intel chipsets.

486 Launcher v2.0 is now under development!

Reply 15 of 30, by Sephiroth

User metadata
Rank Member
Rank
Member

I just used the stock DOSBox config to start DB0.72 and let it sit for 1min. Sure enough, my screensaver kicked in. I moved the mouse and then entered my password to unlock the system. I was presented with the desktop below. This should be enough proof, but if you desire, I will tape this, transfer it to AVI, and encode it to WMV or MPEG and put online so you can witness the bug in action. Oh, and my desktop normally runs in 1280x1024x32, not 640x400x8 or whatever that is.

Bug.jpg

Oh, and here's the DOSBox configuration used.

# This is the configurationfile for DOSBox 0.72.
# Lines starting with a # are commentlines.
# They are used to (briefly) document the effect of each option.

[sdl]
# fullscreen -- Start dosbox directly in fullscreen.
# fulldouble -- Use double buffering in fullscreen.
# fullresolution -- What resolution to use for fullscreen: original or fixed size (e.g. 1024x768).
# windowresolution -- Scale the window to this size IF the output device supports hardware scaling.
# output -- What to use for output: surface,overlay,opengl,openglnb,ddraw.
# autolock -- Mouse will automatically lock, if you click on the screen.
# sensitiviy -- Mouse sensitivity.
# waitonerror -- Wait before closing the console if dosbox has an error.
# priority -- Priority levels for dosbox: lowest,lower,normal,higher,highest,pause (when not focussed).
# Second entry behind the comma is for when dosbox is not focused/minimized.
# mapperfile -- File used to load/save the key/event mappings from.
# usescancodes -- Avoid usage of symkeys, might not work on all operating systems.

fullscreen=false
fulldouble=false
fullresolution=original
windowresolution=original
output=surface
autolock=true
sensitivity=100
waitonerror=true
priority=higher,normal
mapperfile=mapper.txt
usescancodes=true

[dosbox]
# language -- Select another language file.
# memsize -- Amount of memory DOSBox has in megabytes.
# machine -- The type of machine tries to emulate:hercules,cga,tandy,pcjr,vga.
# captures -- Directory where things like wave,midi,screenshot get captured.

language=
machine=vga
captures=capture
memsize=16

[render]
# frameskip -- How many frames DOSBox skips before drawing one.
# aspect -- Do aspect correction, if your output method doesn't support scaling this can slow things down!.
# scaler -- Scaler used to enlarge/enhance low resolution modes.
# Supported are none,normal2x,normal3x,advmame2x,advmame3x,hq2x,hq3x,
# 2xsai,super2xsai,supereagle,advinterp2x,advinterp3x,
# tv2x,tv3x,rgb2x,rgb3x,scan2x,scan3x.
# If forced is appended (like scaler=hq2x forced), the scaler will be used
# even if the result might not be desired.

frameskip=0
aspect=false
scaler=normal2x

[cpu]
# core -- CPU Core used in emulation: normal,simple,dynamic,auto.
# auto switches from normal to dynamic if appropriate.
# cycles -- Amount of instructions DOSBox tries to emulate each millisecond.
# Setting this value too high results in sound dropouts and lags.
Show last 141 lines
#           You can also let DOSBox guess the correct value by setting it to max.
# The default setting (auto) switches to max if appropriate.
# cycleup -- Amount of cycles to increase/decrease with keycombo.
# cycledown Setting it lower than 100 will be a percentage.

core=auto
cycles=auto
cycleup=500
cycledown=20

[mixer]
# nosound -- Enable silent mode, sound is still emulated though.
# rate -- Mixer sample rate, setting any devices higher than this will
# probably lower their sound quality.
# blocksize -- Mixer block size, larger blocks might help sound stuttering
# but sound will also be more lagged.
# prebuffer -- How many milliseconds of data to keep on top of the blocksize.

nosound=false
rate=22050
blocksize=2048
prebuffer=10

[midi]
# mpu401 -- Type of MPU-401 to emulate: none, uart or intelligent.
# device -- Device that will receive the MIDI data from MPU-401.
# This can be default,alsa,oss,win32,coreaudio,none.
# config -- Special configuration options for the device. In Windows put
# the id of the device you want to use. See README for details.

mpu401=intelligent
device=default
config=

[sblaster]
# sbtype -- Type of sblaster to emulate:none,sb1,sb2,sbpro1,sbpro2,sb16.
# sbbase,irq,dma,hdma -- The IO/IRQ/DMA/High DMA address of the soundblaster.
# mixer -- Allow the soundblaster mixer to modify the DOSBox mixer.
# oplmode -- Type of OPL emulation: auto,cms,opl2,dualopl2,opl3.
# On auto the mode is determined by sblaster type.
# All OPL modes are 'Adlib', except for CMS.
# oplrate -- Sample rate of OPL music emulation.

sbtype=sb16
sbbase=220
irq=7
dma=1
hdma=5
mixer=true
oplmode=auto
oplrate=22050

[gus]
# gus -- Enable the Gravis Ultrasound emulation.
# gusbase,irq1,irq2,dma1,dma2 -- The IO/IRQ/DMA addresses of the
# Gravis Ultrasound. (Same IRQ's and DMA's are OK.)
# gusrate -- Sample rate of Ultrasound emulation.
# ultradir -- Path to Ultrasound directory. In this directory
# there should be a MIDI directory that contains
# the patch files for GUS playback. Patch sets used
# with Timidity should work fine.

gus=true
gusrate=22050
gusbase=240
irq1=5
irq2=5
dma1=3
dma2=3
ultradir=C:\ULTRASND

[speaker]
# pcspeaker -- Enable PC-Speaker emulation.
# pcrate -- Sample rate of the PC-Speaker sound generation.
# tandy -- Enable Tandy Sound System emulation (off,on,auto).
# For auto Tandysound emulation is present only if machine is set to tandy.
# tandyrate -- Sample rate of the Tandy 3-Voice generation.
# disney -- Enable Disney Sound Source emulation. Covox Voice Master and Speech Thing compatible.

pcspeaker=true
pcrate=22050
tandy=auto
tandyrate=22050
disney=true

[joystick]
# joysticktype -- Type of joystick to emulate: auto (default), none,
# 2axis (supports two joysticks,
# 4axis (supports one joystick, first joystick used),
# 4axis_2 (supports one joystick, second joystick used),
# fcs (Thrustmaster), ch (CH Flightstick).
# none disables joystick emulation.
# auto chooses emulation depending on real joystick(s).
# timed -- enable timed intervals for axis. (false is old style behaviour).
# autofire -- continuously fires as long as you keep the button pressed.
# swap34 -- swap the 3rd and the 4th axis. can be useful for certain joysticks.
# buttonwrap -- enable button wrapping at the number of emulated buttons.

joysticktype=auto
timed=true
autofire=false
swap34=false
buttonwrap=true

[serial]
# serial1-4 -- set type of device connected to com port.
# Can be disabled, dummy, modem, nullmodem, directserial.
# Additional parameters must be in the same line in the form of
# parameter:value. Parameter for all types is irq.
# for directserial: realport (required), rxdelay (optional).
# for modem: listenport (optional).
# for nullmodem: server, rxdelay, txdelay, telnet, usedtr,
# transparent, port, inhsocket (all optional).
# Example: serial1=modem listenport:5000

serial1=dummy
serial2=dummy
serial3=disabled
serial4=disabled

[dos]
# xms -- Enable XMS support.
# ems -- Enable EMS support.
# umb -- Enable UMB support.
# keyboardlayout -- Language code of the keyboard layout (or none).

xms=true
ems=true
umb=true
keyboardlayout=none

[ipx]
# ipx -- Enable ipx over UDP/IP emulation.

ipx=false

[autoexec]
# Lines in this section will be run at startup.


I got this default configuration by using "writeconfig -write dosbox.conf" from within DOSBox.

486 Launcher v2.0 is now under development!

Reply 17 of 30, by Sephiroth

User metadata
Rank Member
Rank
Member

No, it shouldn't. Bear in mind that if the screensaver was DISABLED as it should be, the system never would have locked. A Windows XP system will only lock if the current user has a password on the account and the screensaver kicks in OR if the user presses the Windows logo key and L at the same time. Besides, this happens on systems that log a default user right in without a password as well, so I have my doubts that a password in Windows has any relation to disabling the screensaver.

486 Launcher v2.0 is now under development!

Reply 19 of 30, by Sephiroth

User metadata
Rank Member
Rank
Member

I don't have time to run around looking for an SDL application. If you know of one that doesn't mess with the registry or anything else, doesn't require an installer, and is basically a small file I can execute without altering anything on the system, please link me and I'll get right on it, but I refuse to install some game or something and add entries to my registry or plop files in my system32 directory just to prove that I am having an issue across multiple machines with DOSBox.

486 Launcher v2.0 is now under development!