DirectDraw 7 TileEngine using .Lock
DirectDraw 7 TileEngine using .Lock
DirectDraw 7 TileEngine using .Lock
DirectDraw 7 TileEngine using .Lock
DirectDraw 7 TileEngine using .Lock
DirectDraw 7 TileEngine using .Lock DirectDraw 7 TileEngine using .Lock DirectDraw 7 TileEngine using .Lock DirectDraw 7 TileEngine using .Lock DirectDraw 7 TileEngine using .Lock DirectDraw 7 TileEngine using .Lock DirectDraw 7 TileEngine using .Lock DirectDraw 7 TileEngine using .Lock
DirectDraw 7 TileEngine using .Lock DirectDraw 7 TileEngine using .Lock
DirectDraw 7 TileEngine using .Lock
Go Back  Xtreme Visual Basic Talk > > > > DirectDraw 7 TileEngine using .Lock


Reply
 
Thread Tools Display Modes
  #1  
Old 07-27-2005, 08:26 AM
Chazz569 Chazz569 is offline
Junior Contributor
 
Join Date: May 2002
Posts: 366
Default DirectDraw 7 TileEngine using .Lock


I was looking into ways of optimizing my tile engine to get better FPS. My idea is to lock my backbuffer and my tileset and copying tiles one at the time while keeping both surfaces lock which from my understanding whould save time. If possible I could even use CopyMemory to copy the tile from my tileset to the backbuffer. Wouldn't this be MUCH faster then using a loop of .bltfast for the tiles since your not lock and unlocking the surfaces so many times and skiping all the overhead of DirectDraw's BltFast?
Reply With Quote
  #2  
Old 07-27-2005, 08:36 AM
Iceplug's Avatar
IceplugDirectDraw 7 TileEngine using .Lock Iceplug is offline
MetaCenturion

Retired Moderator
* Guru *
 
Join Date: Aug 2001
Location: Iowa, USA
Posts: 16,583
Default

I don't see much of a noticeable improvement, since you still have to look up where you have the next tile coming from and where it's going... so, you'd just be doing the blting yourself. BltFast is already quite fast.
__________________

Iceplug, USN
Quadrill 1 Quadrill 2 (full) Quadrill 3 JumpCross .NET Website is ALIVE! - DL Platform Tour for VB.NET! Posting Guidelines Hint: Specify your location in your user cp profile if you want compassion!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
DirectDraw 7 TileEngine using .Lock
DirectDraw 7 TileEngine using .Lock
DirectDraw 7 TileEngine using .Lock DirectDraw 7 TileEngine using .Lock
DirectDraw 7 TileEngine using .Lock
DirectDraw 7 TileEngine using .Lock
DirectDraw 7 TileEngine using .Lock DirectDraw 7 TileEngine using .Lock DirectDraw 7 TileEngine using .Lock DirectDraw 7 TileEngine using .Lock DirectDraw 7 TileEngine using .Lock DirectDraw 7 TileEngine using .Lock DirectDraw 7 TileEngine using .Lock
DirectDraw 7 TileEngine using .Lock
DirectDraw 7 TileEngine using .Lock
 
DirectDraw 7 TileEngine using .Lock
DirectDraw 7 TileEngine using .Lock
 
-->