Search found 22 matches

by siesit
Thu Sep 18, 2025 12:06 pm
Forum: 3D Programming
Topic: When moving, the speed can change unpredictably. 3d FPS
Replies: 22
Views: 1935

Re: When moving, the speed can change unpredictably. 3d FPS

I tested the example "PureBasic621x86\Examples\3D\Demos\FPSFirstPerson.pb"
and it has the same problem: the jump height changes every time I alt+tab.
by siesit
Thu Sep 18, 2025 1:14 am
Forum: 3D Programming
Topic: When moving, the speed can change unpredictably. 3d FPS
Replies: 22
Views: 1935

Re: When moving, the speed can change unpredictably. 3d FPS

The running speed and jump height change every time I switch between windows with alt+tab. :shock:
by siesit
Thu Sep 18, 2025 1:08 am
Forum: 3D Programming
Topic: When moving, the speed can change unpredictably. 3d FPS
Replies: 22
Views: 1935

Re: When moving, the speed can change unpredictably. 3d FPS

These models and textures are for demonstration purposes only.
Even if I reduce the number of cars from *25 to *1 #max_ent, I still see a problem: each test run shows a different jump height.

And even if I disable entity addition altogether: :shock: :shock: :shock:

Procedure game_start()
; game ...
by siesit
Tue Sep 16, 2025 10:45 pm
Forum: 3D Programming
Topic: When moving, the speed can change unpredictably. 3d FPS
Replies: 22
Views: 1935

Re: When moving, the speed can change unpredictably. 3d FPS


So, I made further testes. I figured, that the static geometry does not inherits visibilitymask of the parent entity, so it was rendered twice. I made a new version, removed the rendertexture camera.


This version is incredibly stable, in the previous one I sometimes noticed spontaneous speed ...
by siesit
Tue Sep 16, 2025 10:37 pm
Forum: 3D Programming
Topic: When moving, the speed can change unpredictably. 3d FPS
Replies: 22
Views: 1935

Re: When moving, the speed can change unpredictably. 3d FPS

In flight mode (#cam_type = 1) I have almost no problems.
Except for the sprite that disappears in a certain position.

Now the main problem looks like this:
Movement speed and jump height directly depend on FPS.
In the example, you can see the jump height on the graph.
With the constant #render_fps ...
by siesit
Tue Sep 16, 2025 3:27 pm
Forum: 3D Programming
Topic: When moving, the speed can change unpredictably. 3d FPS
Replies: 22
Views: 1935

Re: When moving, the speed can change unpredictably. 3d FPS

Thank you very much, very informative example.
I have already successfully applied some things. But I haven't figured it out completely yet.

I'm really carried away now. :-)
In my example I keep getting contradictory data.
Sometimes the same code gives different performance after launch.
by siesit
Sun Sep 14, 2025 8:29 pm
Forum: 3D Programming
Topic: When moving, the speed can change unpredictably. 3d FPS
Replies: 22
Views: 1935

Re: When moving, the speed can change unpredictably. 3d FPS


And a "hipoly" single entity for the ogre staticgeometry instances.

and how can I use a single instance of a mesh to render it multiple times?

In the project the distribution of objects will be uneven, so in the example I placed them in this way.

here I improved the demo a bit:
OpenScreen ...
by siesit
Sun Sep 14, 2025 2:10 pm
Forum: 3D Programming
Topic: When moving, the speed can change unpredictably. 3d FPS
Replies: 22
Views: 1935

Re: When moving, the speed can change unpredictably. 3d FPS

Thank you very much for the advice. In fact, I will have to rethink a lot.

( As it was too strong to be affected ) Your map looks like some kind of stress test. I belive its not the tris, but the batches that makes an fps drop while you look toward a specific direction (containing entities)
I ...
by siesit
Thu Sep 11, 2025 9:38 pm
Forum: 3D Programming
Topic: When moving, the speed can change unpredictably. 3d FPS
Replies: 22
Views: 1935

Re: When moving, the speed can change unpredictably. 3d FPS

Hello/
I am using PureBasic 6.21 x86 (win 10)
and you need new screen 16/9
- This is not an option, but I have 2 monitors. 8)
ElapsedMilliseconds()
...
I am really at a dead end :(
by siesit
Thu Sep 11, 2025 9:05 pm
Forum: 3D Programming
Topic: When moving, the speed can change unpredictably. 3d FPS
Replies: 22
Views: 1935

When moving, the speed can change unpredictably. 3d FPS

I'm trying to do something but I get unstable results.

In this example, the NPC's speed changes dramatically depending on where the camera is pointing.
When moving, the speed can change unpredictably.

How to solve this correctly?


;- CONST

Global scale=20*10

;Camera
Global.i camR = 1000 ...
by siesit
Sat Jun 03, 2023 9:03 pm
Forum: 3D Programming
Topic: 3D Image Button gadget
Replies: 4
Views: 3717

Re: 3D Image Button gadget

Faced the same problem. Requires either "ImageButtonGadget3d" or event tracking (click) on ImageGadget3d
by siesit
Tue Oct 11, 2022 10:43 pm
Forum: Tricks 'n' Tips
Topic: RichEdit Functions (OOP) New: with Image-Support
Replies: 78
Views: 51057

Re: RichEdit Functions (OOP) New: with Image-Support

New problem.
on windows 10 tables from opened .rtf files are not displayed :?
siesit wrote: Sat Oct 08, 2022 12:39 am Please help friends.

I really like this module, but there is a crash during printing if the document has a table in which a line break occurs.

I don't know how to fix it :(
by siesit
Sat Oct 08, 2022 11:14 pm
Forum: Tricks 'n' Tips
Topic: RichEdit Functions (OOP) New: with Image-Support
Replies: 78
Views: 51057

Re: RichEdit Functions (OOP) New: with Image-Support

BarryG wrote: Sat Oct 08, 2022 2:46 am Can't download; it wants me to sign up? Can you post it elsewhere? Thanks.
I downloaded the latest version from here
http://www.rsbasic.de/backupprogramme/temp/RichEdit.zip
by siesit
Sat Oct 08, 2022 12:39 am
Forum: Tricks 'n' Tips
Topic: RichEdit Functions (OOP) New: with Image-Support
Replies: 78
Views: 51057

Re: RichEdit Functions (OOP) New: with Image-Support

Please help friends.

I really like this module, but there is a crash during printing if the document has a table in which a line break occurs.

I don't know how to fix it :(
by siesit
Thu Dec 21, 2017 9:17 am
Forum: Coding Questions
Topic: OnError Lib + Shared DLL
Replies: 3
Views: 1849

Re: OnError Lib + Shared DLL

hm...

PureHelp:
When using the OnError library inside a DLL the best practice is to set the error handler at the beginning of every public DLL function and resetting it back to the default with this command before returning to the caller to make sure there is no interference between the OnError ...