Search found 1217 matches

by Thorium
Thu Jun 10, 2021 11:13 am
Forum: Feature Requests and Wishlists
Topic: Update 3D libraries
Replies: 19
Views: 4511

Re: Update 3D libraries

I hadn't heard of 'Unreal Engine as a Library', sounds interesting but perhaps a little young still. Yeah, it's not production ready yet, but may be an option to switch to in the future. They just released it's first iteration with UE4.27 Preview: "UE-As-Lib. With UE-As-Lib, you can build the ...
by Thorium
Wed Jun 02, 2021 9:56 am
Forum: Game Programming
Topic: how can i generate 2d object with particles ?
Replies: 6
Views: 2219

Re: how can i generate 2d object with particles ?

i am studying PB 2D engine ( Game ), and an intriguing question arose, can I do something similar to this in PB with the 2d support library? The project in question was done on the 2D engine called Unity Engine https://xform.artstation.com/projects/gJZbOP and consists of "generating" side...
by Thorium
Wed Jun 02, 2021 9:46 am
Forum: Game Programming
Topic: WeightedRandom - OOP
Replies: 10
Views: 3153

Re: WeightedRandom - OOP

Looks a bit complecated.
There is a fairly simple approach to weighted random numbers. Take a look here: https://stackoverflow.com/questions/176 ... om-numbers

Maybe your binary tree is faster with big data sets, but probably to much overhead for small data sets.
by Thorium
Wed Jun 02, 2021 9:31 am
Forum: Feature Requests and Wishlists
Topic: Update 3D libraries
Replies: 19
Views: 4511

Re: Update 3D libraries

Talking about the 3D engine. It's really outdated. Falling back to OpenGL may also not a good path forward. To my knowlege OpenGL has been widly deprecated in favor of Vulkan. So, if DX is dropped, the logical move would be to Vulkan. You may lose compatibility to extremly old hardware but it's bett...
by Thorium
Tue Mar 30, 2021 10:16 am
Forum: Off Topic
Topic: A Decade of PureBasic!
Replies: 21
Views: 5126

Re: A Decade of PureBasic!

I also showed up late to the party, join date was 2009, but my join date on the german forums was 2005 and i got PureBasic a few years befor that.
I remember i bought the boxed version 3.xx. And i didnt had internet at the time and didnt spoke a word english. :D
by Thorium
Mon Mar 29, 2021 10:43 pm
Forum: Announcement
Topic: Blog post !
Replies: 291
Views: 48067

Re: Blog post !

BarryG wrote:
Saki wrote:First of all, it has to run stably.
Although, I wonder if the number of virus false-positives may suddenly reduce/disappear due to the new code base?
No. C compiled programs just have the same problem with AV's.
by Thorium
Tue Mar 23, 2021 3:53 pm
Forum: Assembly Programming
Topic: AVX-512 Instruction
Replies: 8
Views: 3743

Re: AVX-512 Instruction

It's fairly simple to update FASM to get the new instructions.
You can just replace FASM.exe in the compilers directory.
by Thorium
Tue Mar 23, 2021 3:17 pm
Forum: Announcement
Topic: Blog post !
Replies: 291
Views: 48067

Re: Blog post !

I think it's a very good decision you made. Never understood why compile speeds are so important to PB users. And CPU's are so fast today, we are probably talking about seconds for the majority of PB projects, not even minutes for compiling with C backend and optimization on. For code optimization, ...
by Thorium
Thu Dec 10, 2020 1:52 pm
Forum: Coding Questions
Topic: Crafting an interpreter in PureBasic
Replies: 45
Views: 5013

Re: Crafting an interpreter in PureBasic

Most just want a convenient way to structure data and its behaviour. Thats the biggest flaw of OOP. Data and code should not belong together. It may be easier for a human to think about an object which encapsulated the code and data it operates on. But it's fundamentally not how the computer works....
by Thorium
Wed Dec 09, 2020 3:41 pm
Forum: Coding Questions
Topic: Crafting an interpreter in PureBasic
Replies: 45
Views: 5013

Re: Crafting an interpreter in PureBasic

* no support for OOP. Not con for me. Actually one of the few reasons PureBasic is still relevant to me. Since i am working on a fairly big game project in UE4 and C++ for the last few years, i can really say: OOP introduces more problems than it solves. I spend so much time thinking how to structu...
by Thorium
Fri Dec 04, 2020 9:00 pm
Forum: Off Topic
Topic: What are you working on?
Replies: 49
Views: 19685

Re: What are you working on?

For the past few years i am learning C++, Unreal Engine and started a game project i am working on with a few other people. Most of the project is made by 2 guys, me and another one. However, we also have a lot of contributors, contributing small things, like 3D assets, sounds, etc. Well sometimes e...
by Thorium
Mon Nov 30, 2020 4:50 pm
Forum: Coding Questions
Topic: Server/Client limitation
Replies: 6
Views: 574

Re: Server/Client limitation

Each IP address can handle 65,535 ports. By convention the first 1024 ports are reserved (but they can still be used). The operating system takes care of assigning a free port for each client at connection. Remember to close each connection after use to free the port. It is possible that PB also ha...
by Thorium
Mon Nov 30, 2020 4:04 pm
Forum: General Discussion
Topic: Has anyone used PureBasic with Node.js?
Replies: 1
Views: 901

Re: Has anyone used PureBasic with Node.js?

I use PureBasic for backend stuff. My latest backend services use FastCGI, which works pretty well. Especially because PB does not support SSL natively. So having it as a FastCGI service, i can have Apache provide the SSL connection.
by Thorium
Mon Nov 30, 2020 3:55 pm
Forum: Coding Questions
Topic: Server/Client limitation
Replies: 6
Views: 574

Re: Server/Client limitation

I don't think there is a hard limit for active network connections. At least not in PureBasic, the operating system may have a limit, i am not sure. If the active conncections does not go into the thousends, i would not worry.
by Thorium
Tue Nov 24, 2020 5:51 pm
Forum: Feature Requests and Wishlists
Topic: PackExeData()
Replies: 4
Views: 2042

Re: PackExeData()

I guess this would be not a normal procedure but a compiler directive and run at compile time. I did something similar and wrote an archive to the end of the .exe and the length of the archive as the last few bytes in the .exe. On runtime the program could read the .exe length, the archive length fr...