Search found 224 matches

by benubi
Sat Nov 22, 2025 8:28 pm
Forum: Game Programming
Topic: [SOLVED] My game lags on Steam.
Replies: 37
Views: 1893

Re: My game lags on Steam.

It may have a fallback mechanism for console & window applications and this is much slower because it has to copy the image multiple times between the processes - but that's just my theory. Something must be blocking between the updates. My other thought was that your application waits for remote ...
by benubi
Sat Nov 22, 2025 8:14 pm
Forum: Coding Questions
Topic: PureBasic IDE different from what is in the HTML Help file
Replies: 8
Views: 466

Re: PureBasic IDE different from what is in the HTML Help file

I wonder what you mean. I suggest you make two screenshots and post them (IDE + picture in help). I believe tabs have existed in the IDE since I used PureBasic for the first time in 2004.
by benubi
Sat Nov 22, 2025 3:59 pm
Forum: Game Programming
Topic: [SOLVED] My game lags on Steam.
Replies: 37
Views: 1893

Re: My game lags on Steam.

Wild speculation:

I could suspect that this may be connected to the UI overlay Steam uses. Perhaps the overlay has to read the image & redraw it (with no additions), and then return it in a "copy by value" way or something like that (drawing hook). I'm not an expert but maybe there are possibly ...
by benubi
Sat Nov 22, 2025 3:26 pm
Forum: Game Programming
Topic: Game test v0.01
Replies: 141
Views: 16896

Re: Game test v0.01

Very cool, again. I suppose the road builder will have a "use splines" option when it's polished & ready?
Well then I'm ready to start learning Spanish in case you release the game without localization, or just to have the original feel - I have already bought lessons 20 years ago :lol: but I ...
by benubi
Sat Nov 22, 2025 3:18 pm
Forum: Game Programming
Topic: Fracturetrix Game Announcement Video
Replies: 101
Views: 13920

Re: Fracturetrix Game Announcement Video

Do you use your math lib or sprite collision? I believe sprite collision won't work with transformed and rotated sprites.
by benubi
Sat Nov 22, 2025 3:06 pm
Forum: Bugs - Windows
Topic: PB 6.30 Beta 4 - ScreenGadget library - bug report
Replies: 34
Views: 2337

Re: PB 6.30 Beta 4 - ScreenGadget library - bug report

I hope those questions aren't reposts, but my curiosity grows over time.

Will there be an event-list implementation so as to write "classical" event loops or will it remain confined to 1 event per frame?

I am very delighted about the addition, but I'd also like to use menus and popup menus that ...
by benubi
Sat Nov 22, 2025 2:51 pm
Forum: Coding Questions
Topic: Sprite bug?
Replies: 5
Views: 399

Re: Sprite bug?

1. 10 80 x 768 is not a standard resolution (I changed to 1024x768)

2. I modified one code so it scrolls the sprites, and also grabs the original table as sprite #0

It seems to be complete, starting with 'A' and finishing with '|'. I see nothing missing or grabbed at the wrong place.
(on PB 6.21 ...
by benubi
Sat Nov 22, 2025 2:02 pm
Forum: Coding Questions
Topic: I need code that demonstrates how to switch between independent windows.
Replies: 8
Views: 552

Re: I need code that demonstrates how to switch between independent windows.

There's a "bad" style when using multiple event loops like that, and calling the window_xyz procedures recursively. There's also a problem when I close the "wrong" window.

You can open the windows with the hidden flag in the background. Then you only need to switch visibility. You can also use ...
by benubi
Mon Nov 10, 2025 2:15 pm
Forum: Coding Questions
Topic: Counting Items in the DataSection?
Replies: 38
Views: 19906

Re: Counting Items in the DataSection?

You could also zip all those image files, include the zip and then catch the images using the packer library with the new CatchPack command.

I'm not sure if the packer library would support self extracting archives out of the box but that could be an alternative especially if you'd like to ...
by benubi
Sun Oct 12, 2025 1:20 am
Forum: General Discussion
Topic: Looking for Suggestions
Replies: 13
Views: 2399

Re: Looking for Suggestions

I think you'd have a central executable that manages the states (probably stores in a local DB) of the connections. Multi process is more robust, in case of a bug the external process will fail and the central coordinator can log errors and schedule an other try. But in my CGI experiments I noticed ...
by benubi
Wed Oct 08, 2025 3:49 pm
Forum: Game Programming
Topic: Game test v0.01
Replies: 141
Views: 16896

Re: Game test v0.01

The "town" remembers me a little the Syndicate game on Amiga and cyberpunk B movies like Nemesis, something of that sort. This looks more and more promising. Congrats to your new editor :shock:
by benubi
Thu Sep 18, 2025 10:11 pm
Forum: Coding Questions
Topic: PB 6,30 beta 2: Declare doesn't match real procedure
Replies: 4
Views: 489

Re: PB 6,30 beta 2: Declare doesn't match real procedure

Wow, I must be borderline blind. After I corrected the declaration (to *AVL.AVL_TREE) as they are in the real procedures the compiler accepted it. Thanks guys, and sorry for the false alert.
by benubi
Thu Sep 18, 2025 10:02 pm
Forum: General Discussion
Topic: Anyone has tested for Purebasic with Rasperry ?
Replies: 8
Views: 1523

Re: Anyone has tested for Purebasic with Rasperry ?

It should work just fine with the current Raspberry OS (linux). It has only C backend but I see no drawbacks there. On RP4 the 3D examples work for me only at 15 FPS but I use full resolution 1920x1080 which must be a brake on performance. I haven't used it in weeks but I like to test things on it ...
by benubi
Wed Sep 17, 2025 1:45 pm
Forum: Coding Questions
Topic: PB 6,30 beta 2: Declare doesn't match real procedure
Replies: 4
Views: 489

PB 6,30 beta 2: Declare doesn't match real procedure

Using PB 6.30 beta 2 I run into problems testing a code that works on former versions. The reason is probably the preceding declare that ends with a quad parameter (?).

It fails on Windows, Linux x86 and x64.

Here's one of the modules that fail


DeclareModule AVLTree

Prototype fnClearNodeData ...
by benubi
Mon Sep 15, 2025 4:26 pm
Forum: 3D Programming
Topic: Black Hole simulation at the approximation
Replies: 14
Views: 1667

Re: Black Hole simulation at the approximation

I believe closer particles rotate faster around the event horizon;)
+2 lines:


EnableExplicit

#Width = 800
#Height = 600

Structure Particle
angle.f
radius.f
x.f
y.f
z.f
EndStructure

Global NewList Particles.Particle()

Procedure InitParticles(count)
Protected i
For i = 0 To count ...