Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: scrolling "virtual desktop" within a game in Mame?  (Read 1497 times)

0 Members and 1 Guest are viewing this topic.

GaryMcT

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 745
  • Last login:September 24, 2014, 11:19:27 am
    • GaryMcT's arcade blog
scrolling "virtual desktop" within a game in Mame?
« on: June 24, 2009, 12:38:13 pm »
When I run certain games, I don't end up seeing the whole framebuffer.  If I move the mouse around, I pan around in what looks like the entire framebuffer.  Is there some Mame option that I have on that I should, or is something funky going on in my display driver?  Here's the spew from a verbose run of Mame, along with my mame.ini:


C:\HyperSpin\Emulators\MAME>mame -verbose 1941
Parsing mame.ini
Parsing mame.ini
Video: Monitor 00010001 = "\\.\DISPLAY1" (primary)
DirectDraw: Using DirectDraw 7
DirectDraw: Configuring device ATI MOBILITY RADEON 9800
Target refresh = 59.610000
DirectDraw: Selecting video mode...
   240x 240@ 60Hz -> 719.430697
   256x 240@ 60Hz -> 719.431383
   256x 256@ 60Hz -> 719.430697
   256x 264@ 60Hz -> 719.430403
   288x 240@ 60Hz -> 719.433336
   296x 240@ 60Hz -> 719.434010
   304x 240@ 60Hz -> 719.434795
   320x 200@ 60Hz -> 719.435722
   320x 200@ 75Hz -> 61.024048
   320x 240@ 60Hz -> 719.436832
   320x 240@ 75Hz -> 61.025158
   336x 240@ 60Hz -> 719.439871
   352x 256@ 60Hz -> 719.439871
   352x 264@ 60Hz -> 719.438185
   352x 288@ 60Hz -> 719.434795
   368x 240@ 60Hz -> 719.454789
   384x 224@ 60Hz -> 1719.424486
   384x 288@ 60Hz -> 734.809102
   392x 240@ 60Hz -> 759.424485
   400x 300@ 60Hz -> 730.177174
   400x 300@ 75Hz -> 71.765500
   424x 272@ 60Hz -> 730.660441
   448x 240@ 60Hz -> 731.770165
   480x 240@ 60Hz -> 728.274044
   496x 384@ 60Hz -> 723.087490
   512x 240@ 60Hz -> 726.321038
   512x 256@ 60Hz -> 725.635666
   512x 264@ 60Hz -> 725.341646
   512x 288@ 60Hz -> 724.605833
   512x 384@ 60Hz -> 722.884694
   512x 448@ 60Hz -> 722.257347
   576x 240@ 60Hz -> 724.209175
   592x 240@ 60Hz -> 723.868931
   608x 240@ 60Hz -> 723.573864
   632x 264@ 60Hz -> 722.884694
   640x 240@ 60Hz -> 723.087490
   640x 256@ 60Hz -> 722.884694
   640x 288@ 60Hz -> 722.539751
   640x 350@ 60Hz -> 722.035452
   640x 400@ 60Hz -> 721.733955
   640x 400@ 75Hz -> 63.322281
   640x 480@ 60Hz -> 721.373804
   640x 480@ 72Hz -> 76.631919
   640x 480@ 75Hz -> 62.962130
   640x 480@ 85Hz -> 39.842460
   640x 480@ 90Hz -> 33.806596
   640x 480@100Hz -> 26.109744
   640x 480@120Hz -> 18.238615
DirectDraw: Mode selected =  384x 224@ 60Hz
DirectDraw: primary surface created: 384x224x32 (R=00FF0000 G=0000FF00 B=000000F
F)
DirectDraw: New blit size = 384x224
DirectDraw: blit surface created: 384x224x32 (R=00FF0000 G=0000FF00 B=000000FF)
DirectSound: Primary buffer: 48000 Hz, 16 bits, 2 channels
RawInput: APIs detected
Input: Adding Mouse #1: Alps Touch Pad
Input: Adding Gun #1: Alps Touch Pad
Input: Adding Kbd #1: Standard 101/102-Key or Microsoft Natural PS/2 Keyboard
Input: Adding Mouse #2: HID-compliant mouse
Input: Adding Gun #2: HID-compliant mouse
Input: Adding Kbd #2: HID Keyboard Device
DirectInput: Using DirectInput 7

C:\HyperSpin\Emulators\MAME>cd src

C:\HyperSpin\Emulators\MAME\src>devenv

C:\HyperSpin\Emulators\MAME\src>cd ..

C:\HyperSpin\Emulators\MAME>notepad mame.ini

C:\HyperSpin\Emulators\MAME>





<UNADORNED0>             

#
# CORE CONFIGURATION OPTIONS
#
readconfig                1

#
# CORE SEARCH PATH OPTIONS
#
rompath                   roms
samplepath                samples
artpath                   artwork
ctrlrpath                 ctrlr
inipath                   .;ini
fontpath                  .
cheatpath                 cheat
crsshairpath              crsshair

#
# CORE OUTPUT DIRECTORY OPTIONS
#
cfg_directory             cfg
nvram_directory           nvram
memcard_directory         memcard
input_directory           inp
state_directory           sta
snapshot_directory        snap
diff_directory            diff
comment_directory         comments

#
# CORE STATE/PLAYBACK OPTIONS
#
state                     
autosave                  0
playback                 
record                   
mngwrite                 
aviwrite                 
wavwrite                 
snapname                  %g/%i
snapsize                  auto
snapview                  internal

#
# CORE PERFORMANCE OPTIONS
#
autoframeskip             0
frameskip                 0
seconds_to_run            0
throttle                  1
sleep                     1
speed                     1.0
refreshspeed              0

#
# CORE ROTATION OPTIONS
#
rotate                    1
ror                       0
rol                       0
autoror                   0
autorol                   1
flipx                     0
flipy                     0

#
# CORE ARTWORK OPTIONS
#
artwork_crop              0
use_backdrops             1
use_overlays              1
use_bezels                1

#
# CORE SCREEN OPTIONS
#
brightness                1.0
contrast                  1.0
gamma                     1.0
pause_brightness          0.65

#
# CORE VECTOR OPTIONS
#
antialias                 1
beam                      1.0
flicker                   0

#
# CORE SOUND OPTIONS
#
sound                     1
samplerate                48000
samples                   1
volume                    0

#
# CORE INPUT OPTIONS
#
coin_lockout              1
ctrlr                     
mouse                     0
joystick                  1
lightgun                  0
multikeyboard             0
multimouse                0
steadykey                 0
offscreen_reload          0
joystick_map              auto
joystick_deadzone         0.3
joystick_saturation       0.85

#
# CORE INPUT AUTOMATIC ENABLE OPTIONS
#
paddle_device             keyboard
adstick_device            keyboard
pedal_device              keyboard
dial_device               keyboard
trackball_device          keyboard
lightgun_device           keyboard
positional_device         keyboard
mouse_device              mouse

#
# CORE DEBUGGING OPTIONS
#
log                       0
verbose                   0
update_in_pause           0
debug                     0
debugscript               

#
# CORE MISC OPTIONS
#
bios                     
cheat                     0
skip_gameinfo             0

#
# WINDOWS DEBUGGING OPTIONS
#
oslog                     0
watchdog                  0
debugger_font             "Lucida Console"
debugger_font_size        9

#
# WINDOWS PERFORMANCE OPTIONS
#
priority                  0
multithreading            0

#
# WINDOWS VIDEO OPTIONS
#
video                     ddraw
numscreens                1
window                    0
maximize                  1
keepaspect                1
prescale                  1
effect                    none
waitvsync                 0
syncrefresh               0

#
# DIRECTDRAW-SPECIFIC OPTIONS
#
hwstretch                 0

#
# DIRECT3D-SPECIFIC OPTIONS
#
d3dversion                9
filter                    1

#
# PER-WINDOW VIDEO OPTIONS
#
screen                    auto
aspect                    auto
resolution                auto
view                      auto
screen0                   auto
aspect0                   auto
resolution0               auto
view0                     auto
screen1                   auto
aspect1                   auto
resolution1               auto
view1                     auto
screen2                   auto
aspect2                   auto
resolution2               auto
view2                     auto
screen3                   auto
aspect3                   auto
resolution3               auto
view3                     auto

#
# FULL SCREEN OPTIONS
#
triplebuffer              0
switchres                 1
full_screen_brightness    1.0
full_screen_contrast      1.0
full_screen_gamma         1.0

#
# WINDOWS SOUND OPTIONS
#
audio_latency             2

#
# INPUT DEVICE OPTIONS
#
dual_lightgun             0
My blog on learning how to develop FPGA versions of arcade boards: http://garymct.blogspot.com


GaryMcT

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 745
  • Last login:September 24, 2014, 11:19:27 am
    • GaryMcT's arcade blog
Re: scrolling "virtual desktop" within a game in Mame?
« Reply #1 on: June 24, 2009, 01:50:53 pm »
More data:

The monitor says that it's running at 31.5 KHz.  That seems high if it is actually running at 384x224, unless it is double because the actual resolution might be 768x224.  Would that account for the double rate?

My blog on learning how to develop FPGA versions of arcade boards: http://garymct.blogspot.com


SailorSat

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1249
  • Last login:Yesterday at 08:55:08 pm
    • For Amusement Only e.V.
Re: scrolling "virtual desktop" within a game in Mame?
« Reply #2 on: June 24, 2009, 07:21:16 pm »
More data:

The monitor says that it's running at 31.5 KHz.  That seems high if it is actually running at 384x224, unless it is double because the actual resolution might be 768x224.  Would that account for the double rate?



Only the lines count toward the horizontal scan rate.
However there are some settings in the Catalyst Control Center to "enable only modes supported by every device", and you seem to be running on a notebook. So maybe the card is running in 640x480, with a virtual screen size of 384x224 doubled to a "visible" area of 640x448, with the other pixels (left and right) "panning".
I do all that stuff even without a Joystick ;)
Soft-15kHz, cabMAME, For Amusement Only e.V.


GaryMcT

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 745
  • Last login:September 24, 2014, 11:19:27 am
    • GaryMcT's arcade blog
Re: scrolling "virtual desktop" within a game in Mame?
« Reply #3 on: June 24, 2009, 07:31:00 pm »
More data:

The monitor says that it's running at 31.5 KHz.  That seems high if it is actually running at 384x224, unless it is double because the actual resolution might be 768x224.  Would that account for the double rate?



Only the lines count toward the horizontal scan rate.
However there are some settings in the Catalyst Control Center to "enable only modes supported by every device", and you seem to be running on a notebook. So maybe the card is running in 640x480, with a virtual screen size of 384x224 doubled to a "visible" area of 640x448, with the other pixels (left and right) "panning".

Ah, that would make sense.  I'll try turning that off tonight and see what happens.

Thanks!
My blog on learning how to develop FPGA versions of arcade boards: http://garymct.blogspot.com


GaryMcT

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 745
  • Last login:September 24, 2014, 11:19:27 am
    • GaryMcT's arcade blog
Re: scrolling "virtual desktop" within a game in Mame?
« Reply #4 on: June 25, 2009, 03:32:27 pm »
Tried turning off the "enable only modes supported by every device", which didn't change the behavior.  I was able to set the mode for the windows desktop, and it does the same scrolling there.  I'll make a test image so that I can see how many pixels are on the desktop versus on the screen.
My blog on learning how to develop FPGA versions of arcade boards: http://garymct.blogspot.com


Ummon

  • Trade Count: (+13)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5244
  • Last login:June 09, 2010, 06:37:18 pm
Re: scrolling "virtual desktop" within a game in Mame?
« Reply #5 on: June 26, 2009, 04:11:01 pm »
This happened to me the other night, because I was running in a mode that was beyond my monitor's ability to show properly or something. There was overscan, even though the image didn't fill the screen (geometry needed adjusting).

My first question is, what monitor are you using?
Yo. Chocolate.


"Theoretical physics has been the most successful and cost-effective in all of science."

Stephen Hawking


People often confuse expressed observations with complaint, ridicule, or - even worse - self-pity.

GaryMcT

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 745
  • Last login:September 24, 2014, 11:19:27 am
    • GaryMcT's arcade blog
Re: scrolling "virtual desktop" within a game in Mame?
« Reply #6 on: June 26, 2009, 04:15:21 pm »
This happened to me the other night, because I was running in a mode that was beyond my monitor's ability to show properly or something. There was overscan, even though the image didn't fill the screen (geometry needed adjusting).

My first question is, what monitor are you using?

Wells Gardner d9500.
My blog on learning how to develop FPGA versions of arcade boards: http://garymct.blogspot.com