You can also make a multithreaded system, it's easy in PureBasic, so you have the main thread that draw (FlipBuffers()...) and a thread that make al the calculation every time step (i.e 25ms)
GetTickCount_() and ElapsedMilliseconds() are not really precise, better use QueryPerformanceCounter() (a ...
Search found 6 matches
- Thu Mar 31, 2005 11:33 am
- Forum: Game Programming
- Topic: How to optimize my snake clone?
- Replies: 4
- Views: 2352
- Thu Mar 31, 2005 11:21 am
- Forum: Game Programming
- Topic: 3d Matrix Rotations
- Replies: 8
- Views: 3969
- Tue Jan 18, 2005 1:35 pm
- Forum: Feature Requests and Wishlists
- Topic: [Implemented] Array and LinkedList in structures
- Replies: 0
- Views: 869
[Implemented] Array and LinkedList in structures
I think it would be very useful to be able to create structures with non global arrays or linked lists...
Well, what would be interessant, in my opinion, is to be able to create arrays dynamically... I mean, like variables.
Well, what would be interessant, in my opinion, is to be able to create arrays dynamically... I mean, like variables.
- Sat Aug 14, 2004 2:53 pm
- Forum: Coding Questions
- Topic: Unable ti switch from windowed screen to fullscreen
- Replies: 4
- Views: 1560
- Wed Aug 11, 2004 4:21 am
- Forum: Coding Questions
- Topic: Unable ti switch from windowed screen to fullscreen
- Replies: 4
- Views: 1560
Unable ti switch from windowed screen to fullscreen
Hi !
I did this code
Procedure switchScreen()
CallDebugger
If screen = 1
CloseScreen()
OpenWindow(0, 0, 0, 800, 600, #PB_Window_SystemMenu | #PB_Window_MinimizeGadget, #AppName)
OpenWindowedScreen(WindowID(), 0, 0, 800, 600, 0, 0, 0)
screen = 0
Else
CloseScreen()
CloseWindow(0)
If ...
I did this code
Procedure switchScreen()
CallDebugger
If screen = 1
CloseScreen()
OpenWindow(0, 0, 0, 800, 600, #PB_Window_SystemMenu | #PB_Window_MinimizeGadget, #AppName)
OpenWindowedScreen(WindowID(), 0, 0, 800, 600, 0, 0, 0)
screen = 0
Else
CloseScreen()
CloseWindow(0)
If ...
- Mon Aug 09, 2004 9:08 pm
- Forum: Announcement
- Topic: Milkshape3D ASCII File Loader for PB
- Replies: 20
- Views: 7904