Search found 139 matches

by ricardo_sdl
Mon Dec 08, 2025 9:58 pm
Forum: Game Programming
Topic: [SOLVED] My game lags on Steam.
Replies: 37
Views: 1882

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?
by ricardo_sdl
Wed Dec 03, 2025 8:30 pm
Forum: Tricks 'n' Tips
Topic: 2D water fluid
Replies: 8
Views: 425

Re: 2D water fluid


Thanks for sharing, it's cool.

One important thing though: please process all the events at the beginning of the loop when using screens. (it will be instantly realtime, the pending events causes the delay for the mouse.)

Repeat :Until Not WindowEvent()


Thanks for the tip miso! I changed ...
by ricardo_sdl
Thu Nov 27, 2025 6:13 pm
Forum: Game Programming
Topic: [SOLVED] My game lags on Steam.
Replies: 37
Views: 1882

Re: My game lags on Steam.

Nice game!
From what I read, your game doesn't use Direct X or Opengl, right? It's just a normal windows executable, which uses the Canvas widget to draw stuff to the window, correct?

And which compiler version and options are you using to generate the exe?
by ricardo_sdl
Tue Nov 04, 2025 2:18 pm
Forum: Off Topic
Topic: Recommend Linux Distribution?
Replies: 9
Views: 1097

Re: Recommend Linux Distribution?

You could try some other Ubuntu flavors:
https://ubuntu.com/desktop/flavors

Some of them like, Ubuntu MATE and Xubuntu are dedicated to run on older hardware.
by ricardo_sdl
Thu Jul 24, 2025 8:30 pm
Forum: Off Topic
Topic: Is Google excluded from crawling this board?
Replies: 22
Views: 4111

Re: Is Google excluded from crawling this board?

I use duckduckgo and can't find any forum posts and links on It either. The Domain is fone from the results.
by ricardo_sdl
Fri Jul 04, 2025 11:51 pm
Forum: Game Programming
Topic: My First game in PB : NAOKO & The Pumpkin Castle
Replies: 11
Views: 2494

Re: My First game in PB : NAOKO & The Pumpkin Castle

Nice work! Congratulations.
by ricardo_sdl
Wed May 07, 2025 8:44 pm
Forum: General Discussion
Topic: Website incredibly slow?
Replies: 83
Views: 23977

Re: Website incredibly slow?

Fred wrote: Wed May 07, 2025 4:59 pmAI Bots again
At least vibe coding PureBasic will be more feasible.
by ricardo_sdl
Mon May 05, 2025 6:36 pm
Forum: Windows
Topic: Linker options file limitation?
Replies: 0
Views: 2990

Linker options file limitation?

I'm on Windows 11 Pro - Version 10.0.22631 compilation 22631

PureBasic 6.02 LTS (Windows - x64) - assembly backend compiler

I was trying to change the stack size of the program using the linker options file, but always getting "Unable to read command file 'linker_options.txt'", on a whim I changed ...
by ricardo_sdl
Sat Apr 26, 2025 10:12 pm
Forum: Announcement
Topic: PBWebcam - cross-platform camera access!
Replies: 15
Views: 6428

Re: PBWebcam - cross-platform camera access!

Nice work kenmo! Thanks for sharing.
by ricardo_sdl
Tue Apr 22, 2025 2:02 pm
Forum: Coding Questions
Topic: Can a pointer be a negative number?
Replies: 9
Views: 984

Re: Can a pointer be a negative number?

For pointers I always return #Null when something went wrong or it wasn't possible to return a valid pointer. If I need to know what what happenened I add an output parameter like this:

Procedure GetFunc(Name.s, *ReturnError.Long)

If Name = "name1"
ProcedureReturn *p1
ElseIf Name = "name2 ...
by ricardo_sdl
Wed Apr 16, 2025 6:48 pm
Forum: Coding Questions
Topic: Use of an undefined structure: TMatch.
Replies: 8
Views: 509

Re: Use of an undefined structure: TMatch.


The definition of structure TBattleTarget will compile just fine, even if TMach (or TMatch) isn't defined because the field is a pointer, so purebasic doesn't really care at that point what TMach is. But when you start to work with it and its fields like in the Debug code, then purebasic needs to ...
by ricardo_sdl
Wed Apr 16, 2025 3:55 pm
Forum: Coding Questions
Topic: Use of an undefined structure: TMatch.
Replies: 8
Views: 509

Re: Use of an undefined structure: TMatch.


Maybe the typo is only in the shown code?
Structure TBattleTarget
;bunch of stuff
*Match.TMach ; <=== TMach or TMatch <=> That is the question
EndStructure

BTW: I always use this syntax for my user defined structures, and never got any problems.


Indeed there is a typo on the example code ...
by ricardo_sdl
Wed Apr 16, 2025 2:53 pm
Forum: Coding Questions
Topic: Use of an undefined structure: TMatch.
Replies: 8
Views: 509

Re: Use of an undefined structure: TMatch.

Yes. The structures are declared on top of each file in this order:
Main.pb -> GameState.pbi -> Match.pbi -> Player.pbi -> BattleTarget.pbi -> Match.pbi
Eacho file is included with XIncludeFile.
by ricardo_sdl
Wed Apr 16, 2025 2:35 pm
Forum: Coding Questions
Topic: Use of an undefined structure: TMatch.
Replies: 8
Views: 509

Use of an undefined structure: TMatch.

I got this error message from the compiler: "Use of an undefined structure: TMatch."
The code is something like this:

Structure TBattleTarget
;bunch of stuff
*Match.TMach
EndStructure

The structure definition compiles fine. But then I added this line inside a procedure:

Debug *BattleTarget ...
by ricardo_sdl
Thu Mar 20, 2025 7:03 pm
Forum: General Discussion
Topic: [Video] - How I optimised the Forbidden Solitaire FMV code by Jake Birkett
Replies: 5
Views: 1670

Re: [Video] - How I optimised the Forbidden Solitaire FMV code by Jake Birkett

And the thing is BlitzMax compiler generates c or c++ code which is then fed to the compiler and you would expect it make the smart optmizations. One thing I think made a big difference was that he improved the cache usage for the code.