BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Slow Form Updates when using DirectX

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics
View previous topic :: View next topic  
Author Message
George D. Sciss
Guest





PostPosted: Sun Mar 27, 2005 9:48 pm    Post subject: Slow Form Updates when using DirectX Reply with quote



I am writing a game using the Jedi DirectX libraries. I have noticed that
DirectX slows down greatly when Blitting to a panel in a windowed
application vs. a full-screen application. I think that there is some
underlying Form painting going on that is slowing down DirectX. Here is the
code snippet:

if dest.Blt(@dest_rect, bob.images_DD7[bob.curr_frame], @source_rect,
(DDBLT_WAIT or DDBLT_KEYSRC), Nil) <> DD_OK then
begin
Result := False;
Exit;
end;

The resulting Blt works but the overall game loop is very slow so the
animation lags. Any ideas on how to speed things up? Is there some Delphi
form setting I can change? Thanks!

George


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.