<p>Am 17.05.2017 07:12 schrieb <<a href="mailto:noreply@z505.com">noreply@z505.com</a>>:<br>
><br>
> On 2017-05-15 17:27, Graeme Geldenhuys wrote:<br>
>><br>
>> On 2017-05-15 22:50, <a href="mailto:noreply@z505.com">noreply@z505.com</a> wrote:<br>
>>><br>
>>> Graeme will need to clarify whether he was trying to be harsh on FPC<br>
>>> entirely, or just specifically in some areas.. :-)<br>
>><br>
>><br>
>> I'll try and clarify... I believe FPC generates slow (or slower than<br>
>> Delphi, GCC and Java) code no matter what. The saving grace is that<br>
>> you don't really notice it on normal event-based desktop applications.<br>
>> Writing a game is a whole different story. Games are way more<br>
>> sensitive to performance.<br>
>><br>
>> Now the game I wrote, was a desktop GUI application. It was slow under<br>
>> Linux, FreeBSD and Windows. So the results were consistent, no matter<br>
>> what GUI API was used.... Be that fpGUI (via GDI), fpGUI (via X11) or<br>
>> LCL-GTK2. In all cases, game rendering was to a memory image, then<br>
>> once done, that memory image was bitblit to the Window Canvas.<br>
>><br>
>> The Java and GCC versions did the same, but were faster.<br>
>><br>
>> That's all I can say about. Make your own assumptions - read into it<br>
>> any conspiracy theories or what-not. ;-) At this point I don't really<br>
>> care, as I already moved on with that project, using OpenGL instead<br>
>> (both for Java and Object Pascal).<br>
>><br>
><br>
> But any game ends up using opengl anyway, doesnt' it? Sorry I'm not a big game programmer. Want to be, some day.</p>
<p>No, OpenGL is not a given. E.g. on Windows you can use DirectX and depending on the demands of your game a TCanvas might be completely sufficient.<br>
Also Graeme was talking about a raytracer which is a completely different beast compared to OpenGL/DirectX/Vulkan. While a raytracer *might* use one of those APIs for output of the final image the main task is the calculation of said image and *that* is where Graeme said that FPC had problems.</p>
<p>Regards,<br>
Sven</p>