Previous
Next
Table of Contents
Here are a few short tips on how to get the maximum out of PTC for X11. If
you stick to all of them you can get a 100% speed increase (this is NOT
exaggerated!). The other way round, if you ignore them, you can lose half
the speed of your application.
- For PCs with Linux: Use pgcc or egcs instead of gcc. With the realtime
tunnel, pgcc 1.0.3a with -O6 -mpentium gives a 40% speed increase over
gcc 2.7.2 ! If you have a pentium, then you should use a compiler that can
optimise for it.
- For PCs: Don't be lazy. Download NASM so you compile the assembler
routines into PTC. They give a 50% speedup over pgcc even, so that's
definitely worth it.
- For all platforms: Use 32 bit surfaces and let PTC do the conversion.
Don't be afraid of using them, the conversion routines will convert them
really quickly anyway and you get to write dwords into them.
- For PCs: Warn the users of your application to put proper video modes
into XF86Config (e.g. "320x200") so your application can use DGA mode. This
will give at least 30% speedup over windowed display. Alternatively, use the
PTC_X11_PEDANTIC_DGA flag.
- Finally, don't compile the kernel in the background at the same time
:)
Previous
Next
Table of Contents