 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
George D. Sciss Guest
|
Posted: Sun Mar 27, 2005 9:48 pm Post subject: Slow Form Updates when using DirectX |
|
|
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 |
|
 |
|
|
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
|
|