Solved

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

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

708 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now