Solved

Which is better..Multi-windowed or Multi-surfaced DirectX app?

Posted on 2001-07-14
4
328 Views
Last Modified: 2012-05-04
I'm starting out a new project that basically will be a DirectX interface with either

1) Tiled windows within the main window, where each window
manages its own primary/background surface and flipping.

OR

2) Using just the entire window and managing multiple surfaces
   (For example: the top-left hand portion of the window is one surface, etc)

Note: I intend to have about 4 to 5 separate sub-windows. One implements
parallax scrolling (borrowing from SAMS book example) and another surface is
essentially a status window. Am I pursuing the correct route, or is it
very easy to set up tiled windows within your app? If option 2 is
more do-able, what's the best strategy on managing the surfaces?

The one I've been thinking about is during each update()
bitblt the surfaces to a background buffer (whole screen)
and then flip it over the primary....

Thanks in advance.
-desertcoder-
0
Comment
Question by:joeycato
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 2

Accepted Solution

by:
dmarco earned 100 total points
ID: 6330313
Hi joeycato,

your second choice is faster than the first one. DX windowed applications are slower than exclusive cooperative level. You can bitblt your sprite(s) as different rects in your backbuffer surface attached to the primary and then flip..

hope this helps
0
 

Author Comment

by:joeycato
ID: 6339443
I forgot to mention that both options would be windowed-base, so in light of that, would your advice change?

thx
0
 
LVL 2

Expert Comment

by:dmarco
ID: 6342588
joeycato,

no, I believe your first choice (one main window with tiled windows inside) is slower.
But why do you add other windows to the second solution? You can split your surface using rects...

Thanks
Marco
0
 

Author Comment

by:joeycato
ID: 6343005
Thanks, cool, actually that's the way I'm currently designing it (using 1 surface and bitbltting separate rectangles)...I guess I was at a crossroads, because I figured if I were going to have multiple windows, I would want to stay with the Multiple Document Window approach, because it might be a more professional looking interface, but I agree with you, using the rectangle approach does sound better.

-thx
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Artificial Intelligence comes in many forms, and for game developers, Path-Finding is an important ability for making an NPC (Non-Playable Character) maneuver through terrain.  A* is a particularly easy way to approach it.  I’ll start with the algor…
Recently, in one of the tech-blogs I usually read, I saw a post about the best-selling video games through history. The first place in the list is for the classic, extremely addictive Tetris. Well, a long time ago, in a galaxy far far away, I was…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question