Re: [fpc-pascal] FPC Graphics options?
Am 14.05.2017 23:18 schrieb : > > On 2017-05-11 18:57, Jon Foster wrote: >> >> On 05/11/2017 02:48 PM, Graeme Geldenhuys wrote: >>> >>> On 2017-05-11 19:43, James Richters wrote: Any Suggestions? >>> >>> >>> Speed: >>> In recent graphics work I've done, I've noticed that FPC is fantastic >>> at created cross-platform applications. But the generated binaries >>> are NOT fast at all - no matter how many compiler parameters and >>> artificial speed optimisations we tried to implement. Sloppy Java >>> code ended up 3x faster than the best I could get out of FPC >>> generated binaries. >>> >>> I'm not saying this is your performance problem (especially comparing >>> a 3Ghs PC vs a 233Mhz PC) - there certainly seems to be another >>> problem contributing to your speed issue. >> >> Wow, Graeme! That's harsh. One of the last set of benchmarks I did >> that focused on integer math and procedure call speed came out as >> follows: > > > I think he specifically meant graphics apps, not general apps While a raytracer is indeed a graphics app it's mainly about CPU computation in this case and not interfacing with the GPU like OpenGL does (of course one can write a raytracer to take advantage of the parallel architecture of a GPU, but that's bot the case in this specific example). Regards, Sven ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FPC Graphics options?
On 2017-05-11 18:57, Jon Foster wrote: On 05/11/2017 02:48 PM, Graeme Geldenhuys wrote: On 2017-05-11 19:43, James Richters wrote: Any Suggestions? Speed: In recent graphics work I've done, I've noticed that FPC is fantastic at created cross-platform applications. But the generated binaries are NOT fast at all - no matter how many compiler parameters and artificial speed optimisations we tried to implement. Sloppy Java code ended up 3x faster than the best I could get out of FPC generated binaries. I'm not saying this is your performance problem (especially comparing a 3Ghs PC vs a 233Mhz PC) - there certainly seems to be another problem contributing to your speed issue. Wow, Graeme! That's harsh. One of the last set of benchmarks I did that focused on integer math and procedure call speed came out as follows: I think he specifically meant graphics apps, not general apps But I'm not sure ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FPC Graphics options?
On 2017-05-11 16:48, Graeme Geldenhuys wrote: On 2017-05-11 19:43, James Richters wrote: Any Suggestions? Speed: In recent graphics work I've done, I've noticed that FPC is fantastic at created cross-platform applications. But the generated binaries are NOT fast at all - no matter how many compiler parameters and artificial speed optimisations we tried to implement. Sloppy Java code ended up 3x faster than the best I could get out of FPC generated binaries. What about things like opengl, i.e. ZenGL? Or you use something else for graphics? Since opengl are just wrappers around librarie that call c code, it shouldn't be slow and should be the same speed as any C++ wrapper other than the wrapper itself having bottlenecks? But depends what you mean by graphics I guess. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal