• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.
Sign in to follow this  
Followers 0
  • entries
    40
  • comments
    7
  • views
    24839

Multi-monitor pain.

Sign in to follow this  
Followers 0
Tape_Worm

780 views

sitelogo.pngSo, one of the shortcomings of the original Gorgon was that there was no support for multi-monitor. And I see now why I didn't bother... what a pain in the ass.

Anyway, I finally figured it out. See, there are two ways to do multi-mon support in Direct 3D 9:


  1. Create 2 devices, one for each adapter. This is actually simple, and is the only way to get multi-mon going for 2 discreet video cards. The down side is that they can't share data between them, so you'll have to double up on your textures, vertices, etc... if you want to have a copy of the same data on a difference device. Not ideal, but manageable. Of course, that's just getting the 2 devices working in windowed mode... when you go to full screen mode, then it becomes, in scientific terms, a clusterfuck. Apparently, you can only have 1 device in full screen at any given time. However, it's possible to make both devices full screen if they meet a certain set of conditions:* The devices must be created by the same IDirect3D9 object. - That's easy, I did that anyway.
    * The devices must share the same focus window. - Oh, ok... how do I determine which window is the focus window? Well, for now, it's the first window that's created with a IDirect3DDevice9 object attached to it.
    * Must be a different adapter ID. - This was actually more of a pain to get around than you might think.



    Anyway, in the end, it works. You can create multiple windows on multiple monitors and have them in full screen mode. It was horrible. And I really don't know how well this is going to work on multiple physical cards since that's a setup I don't have access to.
  2. Create a multi-head device object. Multi-head cards are the more common cards (look on the back, see a VGA and DVI or 2 DVI connectors? Yeah, you got a multi-head card). Direct 3D 9 treats both heads as separate devices for compatibility reasons (and indeed, that's how the previous method works), but as stated before, we lose shared data with that method. With a mult-head device we can go full screen on multiple monitors, -and- share the data. It does this by creating 2 swap chains for the device (one IDirect3DDevice9 object with multiple swap chains). Sounds good, but in Direct 3D 9, this is not without its own set of caveats:

    * It's fullscreen only, if you want shared data across multiple heads in windowed mode, use additional swap chains. - Since the heads are driven by the same video card, the multiple swap chained windows will work just fine as is (they're already sharing a device). As for full screen, well, you can't go full screen with an additional swap chain while having the device in full screen (i.e. the implicit swap chain on the device object is already full screen, in essence only one swap chain can be fullscreen at a time). In the case of multi-head devices, they cheat a little (or that's how it looks to me) and create 2 swap chains for one device in full screen mode.
    * You cannot create additional swap chains while in fullscreen mode. - This is not really a big deal, as I limit the creation of multiple swap chains to windowed mode only in Gorgon anyway.
    * You must create swap chains for -all- heads, even if you're only using 2. - While this is not that common a scenario, it's annoying and wasteful.
    * You must destroy the device object and recreate it to switch to windowed mode. - This is my biggest annoyance of all, it makes management of these objects quite difficult. Because of this, I have to rethink how I want to design the implementation for the device objects. It won't be fun.

I've yet to get the multi-head stuff working the way I want. As it is, it works, but it's not very flexible (it'll crash hard if you try to modify the device, see the last point of item 2). Compared to Direct 3D 10/11, multiple monitor stuff is needlessly complicated. The beauty of D3D10 and 11 is that you only need to create swap chains for the video outputs (heads) that you want. Everything is far more flexible that way.
Anyway, that's my rant on multiple monitors.



Source

0
Sign in to follow this  
Followers 0


1 Comment


Hello Tape Worm, I also spent considerable effort with multi-monitor.
I am surprised you're still positive with heterogeneous-device support... it drove me crazy.
0

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now