Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Direct draw test

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming -> Binaries
View previous topic :: View next topic  
Author Message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Wed Jul 01, 2009 11:38 pm    Post subject: Direct draw test Reply with quote

Moved my little graphics engine to direct draw from GDI for a little experiment.

Things I've learned:
It is MUCH faster to blit from video memory. The speed is nice in comparison.

It's a pain in the ass and confusing to set up and has shit documentation. Why do I have to manually calculate the location of the window and handle where it does the blits? This seems like something I shouldn't have to worry about. It's pretty straightforward once it's actually set up though.

Using DirectX is a much smarter idea. Much simpler to set up, basically free scaling, free blending, etc, etc.



http://www.filefront.com/13951310/directdraw_test.rar
It draws sierpinski triangle.

Also, as a bonus, it crashes because I was too lazy to take care of recreating surfaces when they are lost.


I think I'll try my hand at a proper real time engine next.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming -> Binaries All times are GMT - 6 Hours
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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites