Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2001-07-14
4
Medium Priority
?
332 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 200 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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 …
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…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

604 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