#PB_2DDrawing_FastText
If this flag is set then the DrawText() and DrawRotatedText() commands will use a faster text rendering method but with less precise unicode support (Windows only).
When I use this mode, I see a slight difference in performance, but no visual difference. I don't really ...
Search found 706 matches
- Wed Dec 10, 2025 9:29 am
- Forum: Announcement
- Topic: PureBasic 6.30 beta 7 is ready !
- Replies: 153
- Views: 38028
- Tue Dec 09, 2025 6:23 pm
- Forum: Coding Questions
- Topic: [SOLVED] Switch mouse cursor from arrow to hand
- Replies: 4
- Views: 486
Re: Switch mouse cursor from arrow to hand
Thank you RASHAD! 
- Tue Dec 09, 2025 4:18 pm
- Forum: Coding Questions
- Topic: [SOLVED] Switch mouse cursor from arrow to hand
- Replies: 4
- Views: 486
Re: Switch mouse cursor from arrow to hand
The problem is that it's very glitchy when used with a screen:
If InitSprite() = #Null
MessageRequester("Error", "InitSprite failed.", #PB_MessageRequester_Error)
End
EndIf
#_WINDOW_WIDTH = 720
#_WINDOW_HEIGHT = 640
OpenWindow(0, 0, 0, #_WINDOW_WIDTH, #_WINDOW_HEIGHT, "", #PB_Window ...
If InitSprite() = #Null
MessageRequester("Error", "InitSprite failed.", #PB_MessageRequester_Error)
End
EndIf
#_WINDOW_WIDTH = 720
#_WINDOW_HEIGHT = 640
OpenWindow(0, 0, 0, #_WINDOW_WIDTH, #_WINDOW_HEIGHT, "", #PB_Window ...
- Tue Dec 09, 2025 4:11 pm
- Forum: Announcement
- Topic: PureBasic 6.30 beta 7 is ready !
- Replies: 153
- Views: 38028
Re: PureBasic 6.30 beta 5 is ready !
I don't see the ScreenGadget doc in the gadget section of the manual (F1)?
Is it normal that compiling a program now opens a console window?
Is it normal that compiling a program now opens a console window?
- Mon Dec 08, 2025 10:07 pm
- Forum: Game Programming
- Topic: [SOLVED] My game lags on Steam.
- Replies: 37
- Views: 3298
Re: [SOLVED] My game lags on Steam.
I'm glad it's working now, but, did they give any techinical explanation on why the overlay interfered with your game code making it slower?
No they just said that I cannot do it from my side. Maybe a specific library of PB? Honestly, I don't think they investigated anything. Some people on ...
- Mon Dec 08, 2025 9:36 pm
- Forum: Game Programming
- Topic: [SOLVED] My game lags on Steam.
- Replies: 37
- Views: 3298
Re: My game lags on Steam.
Update: Steam support has deactivated the overlay from my game, and it now works as intended! Hurray! (3 weeks to do that!)
- Mon Dec 08, 2025 2:39 pm
- Forum: Coding Questions
- Topic: [SOLVED] Switch mouse cursor from arrow to hand
- Replies: 4
- Views: 486
[SOLVED] Switch mouse cursor from arrow to hand
Is there any way to change (temporarily) the mouse cursor while using hardware mouse and a windowed screen? (on Windows)
SetClassLong_(hWnd, #GCL_HCURSOR, LoadCursor_(0, #IDC_HAND))
This doesn't work.
SOLVED:
SetClassLongPtr_(WindowID(0), #GCL_HCURSOR, 0)
SetCursor_(LoadCursor_(0, #IDC ...
SetClassLong_(hWnd, #GCL_HCURSOR, LoadCursor_(0, #IDC_HAND))
This doesn't work.
SOLVED:
SetClassLongPtr_(WindowID(0), #GCL_HCURSOR, 0)
SetCursor_(LoadCursor_(0, #IDC ...
- Mon Dec 08, 2025 11:30 am
- Forum: Game Programming
- Topic: [SOLVED] My game lags on Steam.
- Replies: 37
- Views: 3298
Re: My game lags on Steam.
To be clear, it doesn't change anything. It's not only loading times, everything is slower. But loading times, because of how CPU intensive they are, are the most obvious slow downs.miso wrote: Mon Dec 08, 2025 10:40 am Yes, I thought everything became fine, only loading takes longer than usual.
- Mon Dec 08, 2025 10:19 am
- Forum: Game Programming
- Topic: [SOLVED] My game lags on Steam.
- Replies: 37
- Views: 3298
Re: My game lags on Steam.
Not at all, it didn't change anything
- Mon Dec 08, 2025 8:39 am
- Forum: Game Programming
- Topic: [SOLVED] My game lags on Steam.
- Replies: 37
- Views: 3298
Re: My game lags on Steam.
Quick update: I've made a "screen" version of my game (hardware accelerated), and now the Steam overlay works and you can see the FPS at the top right corner of the screen, but the problem isn't fixed, because loading times (the most obvious slow downs) are still longer when the game is launched ...
- Sun Dec 07, 2025 9:16 am
- Forum: Coding Questions
- Topic: [SOLVED] Reliable #WM_MOUSEWHEEL value?
- Replies: 12
- Views: 724
Re: Reliable #WM_MOUSEWHEEL value?
I've been doing it like this for years with no problem:
OpenWindow(0, 0, 0, 720, 640, "", #PB_Window_ScreenCentered | #PB_Window_SystemMenu)
#mouse_wheel_up=-1
CompilerIf #PB_Compiler_Processor=#PB_Processor_x64
#mouse_wheel_down=-545
CompilerElse
#mouse_wheel_down=1
CompilerEndIf ...
- Sat Dec 06, 2025 4:54 pm
- Forum: Coding Questions
- Topic: [SOLVED] Reliable #WM_MOUSEWHEEL value?
- Replies: 12
- Views: 724
Re: Reliable #WM_MOUSEWHEEL value?
Doesn't work with me. EventwParam() is always 0. We go through a callback here, so WParam must be used. But the previous example works fine.
EDIT: Actually no, the example of RASHAD doesn't work when I go too fast. But yours work all the time, so thank you!
EDIT: Actually no, the example of RASHAD doesn't work when I go too fast. But yours work all the time, so thank you!
- Sat Dec 06, 2025 4:44 pm
- Forum: Coding Questions
- Topic: [SOLVED] Reliable #WM_MOUSEWHEEL value?
- Replies: 12
- Views: 724
Re: Reliable #WM_MOUSEWHEEL value?
Hi
You can try
Windows x64
If Message = #WM_MOUSEWHEEL
value = wParam >> 24
If value = 0
Debug "up"
ElseIf value = 255
Debug "down"
EndIf
EndIf
Yep, that works, thank you! I don't know anything about this topic, but there's always some low level games like Dwarf Fortress that don't ...
- Sat Dec 06, 2025 3:50 pm
- Forum: Coding Questions
- Topic: [SOLVED] Reliable #WM_MOUSEWHEEL value?
- Replies: 12
- Views: 724
[SOLVED] Reliable #WM_MOUSEWHEEL value?
OpenWindow(0, 0, 0, 720, 640, "", #PB_Window_ScreenCentered | #PB_Window_SystemMenu)
Procedure.i WinCallback(WindowID, Message, WParam, LParam)
Define Result = #PB_ProcessPureBasicEvents
If Message = #WM_MOUSEWHEEL
Debug -(WParam >> 16) / #WHEEL_DELTA
EndIf
ProcedureReturn Result ...
- Thu Dec 04, 2025 12:37 pm
- Forum: Coding Questions
- Topic: Macro bug?
- Replies: 2
- Views: 293
Re: Macro bug?
Bug report: viewtopic.php?t=88012