Search found 2980 matches
- Aug 10, 2007 23:49
- Forum: Beginners
- Topic: Poking an image buffer - Blue-ness
- Replies: 7
- Views: 1771
As far a speed goes, if you need to perform this operation numerous times, consider making a Look-Up-Table for all your poke values... Dim Shared LUT(639,479) as Integer Dim X as Integer Dim Y as Integer For Y=0 to 639 For X=0 to 479 LUT(X,Y)=(Y*640)+X)*4 Next X Next Y You do these calculations one ...
- Aug 10, 2007 21:37
- Forum: Tips and Tricks
- Topic: CPU independent code timing
- Replies: 8
- Views: 3040
- Aug 10, 2007 18:32
- Forum: Tips and Tricks
- Topic: CPU independent code timing
- Replies: 8
- Views: 3040
Further testing has revealed to me that the Timer function is not as accurate (on my system) as using GetTickCount. When using Timer, my sprites become unsychronized. Re-instating GetTickCount in my code keeps all my sprites 100% in sync. I'm not sure why since you said FB would institute the Perfor...
- Aug 10, 2007 4:02
- Forum: Tips and Tricks
- Topic: CPU independent code timing
- Replies: 8
- Views: 3040
- Aug 10, 2007 1:37
- Forum: Beginners
- Topic: Using New to create a new type
- Replies: 6
- Views: 1453
- Aug 10, 2007 0:02
- Forum: Tips and Tricks
- Topic: CPU independent code timing
- Replies: 8
- Views: 3040
- Aug 09, 2007 23:43
- Forum: Tips and Tricks
- Topic: CPU independent code timing
- Replies: 8
- Views: 3040
CPU independent code timing
I just recently started using FreeBASIC and wanted to start contributing to the community. Here is some code which shows how I limit sections of code execution to a certain # of times per second. I use this code to limit sprite animations and sometimes my entire game loop. Hope someone finds this us...
- Aug 08, 2007 1:10
- Forum: Game Dev
- Topic: Screen Memory
- Replies: 3
- Views: 2855
Ok. I changed my internal BackBuffer to 32bits and everything displays fine. Now the question becomes.... Why does this code.... ScreenRes 800, 600, 24, 2 result in a bit depth of 32 bits? According to the documentation, I should get a 24bpp screen but this is not the case. Also, is there a way to r...
- Aug 07, 2007 23:37
- Forum: Game Dev
- Topic: Screen Memory
- Replies: 3
- Views: 2855
Screen Memory
Hello, I am new to FreeBasic but not programming. I have been re-coding a gaming engine and I have encountered a curious problem. I use internal DIBs to hold all my sprite animations and graphics. (I use this instead of the GFX library because (1. I am more comfortable with them, 2. I can use all th...