Solved

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

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

Independent Software Vendors: 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

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 …
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

691 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