Page 2 of 2

Re: What is the real PureBasic speed ?

Posted: Sat Nov 20, 2010 1:27 pm
by marc_256
@ Thorium
marc_256 wrote: Well, if I start to write my own 3D engine/renderer it does matter.
The nice thing in PB is that I can write the most important parts in asm.

Actualy, no.
If it isn't a software renderer it doesn't matters as the performance critical stuff is executed on the GPU anyway.
My goal is to write a Software NOT using any GPU.
Reason, I will write it for win98...Win7,
everyone who want to use it is welcome.

The problem with GPU cards is that you are always behind the hardware, software and drivers.

@ ultralazor
Most times I see someone try to use the low-level language theory they either end up with vaporware, or poorly managed code that is worse than all the alternatives..Assembly coding is an art when you're talking about complex code algo..same with inline assembler.
The last 25 years all my software was developed in ASSEMBLER.
I wrote some applications and OS in ASM to control robots in industrial and nuclear environments.
Reason, I needed 'real time' OS and NOT WINDOWS or other OS.
using Single Board Computer Boards (SBC).

By using now PC and windows I want to use PB and ASM for the development of this project.

Even all my (hobby) robots have OS and applications in assembler.
see: http://www.marc-systems.be/new_2010/hob ... ftware.htm


Greetings,
Marc,

Re: What is the real PureBasic speed ?

Posted: Sat Nov 20, 2010 2:40 pm
by Thorium
marc_256 wrote: My goal is to write a Software NOT using any GPU.
Reason, I will write it for win98...Win7,
everyone who want to use it is welcome.
If thats the case than you should use inline assembly if you do it in PB. So you can take advantage of SIMD units (MMX/SSE). PB does not optimize the generated asm code. The speed of PB comes primarly from the very well made PB libs.

However you can write lightning fast code in PB by using inline asm for critical parts. I made my own image file format, it's a lot like PNG, same compression. The decoder written in PB with inline asm decodes up to 2 times faster than libpng.

Re: What is the real PureBasic speed ?

Posted: Sun Nov 28, 2010 9:28 am
by ultralazor
@marc_256: Emedded systems and OS userland are entirely different..assemblers generate PE and ELF too using the same API as PB. I don't really see how PB is inferior unless you're talking about memory mapping size in which case there is very little difference in most cases. You still use OpenGL and DX the same way in PB. Maybe there is some useless code but it's not that bad, and can easily be taken away(a quick glance in IDA or OllyDbg shows a respectfully optimized PE and ELF code section etc..).