User forums > Help

[solved] wxSmith is awfully slow

<< < (2/2)

Miguel Gimenez:
Here you have the full settings with comments.

--- Code: ---// Setting wxUSE_GLCANVAS to 1 enables OpenGL support. You need to have OpenGL
// headers and libraries to be able to compile the library with wxUSE_GLCANVAS
// set to 1 and, under Windows, also to add opengl32.lib and glu32.lib to the
// list of libraries used to link your application when linking to wxWidgets
// statically (although this is done implicitly for Microsoft Visual C++ users).
//
// Default is 1.
//
// Recommended setting: 1 if you intend to use OpenGL, can be safely set to 0
// otherwise.
#define wxUSE_GLCANVAS       1

// Setting wxUSE_GLCANVAS_EGL to 1 enables OpenGL EGL backend. This will be
// automatically enabled if EGL support is detected.  EGL support is only
// available under Unix platforms.
//
// Default is 0.
//
#define wxUSE_GLCANVAS_EGL   0

--- End code ---

tigerbeard:

--- Quote from: Miguel Gimenez on December 07, 2023, 06:24:58 pm ---Here you have the full settings with comments.
...

--- End quote ---

OK..., what part do you think refers to controls rendering?

Miguel Gimenez:
From wxwidgets docs:

--- Quote ---Usually wxWidgets uses the underlying low level GUI system to draw all the controls - this is what we mean when we say that it is a "native" framework. However not all controls exist under all (or even any) platforms and in this case wxWidgets provides a default, generic, implementation of them written in wxWidgets itself.
--- End quote ---
For more details refer to wxWidgets documentation, this is OT here.

tigerbeard:

--- Quote from: Miguel Gimenez on December 07, 2023, 06:41:13 pm ---From wxwidgets docs:

--- Quote ---Usually wxWidgets uses the underlying low level GUI system to draw all the controls - this is what we mean when we say that it is a "native" framework. However not all controls exist under all (or even any) platforms and in this case wxWidgets provides a default, generic, implementation of them written in wxWidgets itself.
--- End quote ---
For more details refer to wxWidgets documentation, this is OT here.

--- End quote ---
Right, sorry did not want to get OT. The OpenGL confused me a bit.

I know that wxWigets in Linux mostly uses gtk native controls,  Unfortunately I might add, because I ran into that when trying to match the screen density of the class browser in Linux to its Windows sibling. I utterly failed exactly because it was not rendered by wxWidgets, but just uses a native gkt2/3 control. Which incidently is lacking a working parameter to get rid of all this useless space around the single tree items. At least vertically. I fought a while with gtk theme parameters and finally gave in. But this is OT as well... :-)


Navigation

[0] Message Index

[*] Previous page

Go to full version