Solved

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

Posted on 2001-07-14
4
326 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
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

What is RenderMan: RenderMan is a not any particular piece of software. RenderMan is an industry standard, defining set of rules that any rendering software should use, to be RenderMan-compliant. Pixar's RenderMan is a flagship implementation of …
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…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

829 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