Code: Select all
If A=1
@Require "plugin"
EndIfFor I tried that one, but even I set A into something else than 1, it still said "this program requires Plugin"
Code: Select all
If A=1
@Require "plugin"
EndIfThis is not possible at runtime because plugins like RebelSDL or RapaGUI replace core constituents like the event loop and window handler. It's not possible to switch these things at runtime. So if you want to allow the user to choose, you have to provide separate executables.
There is no easy answer here as it depends on too many factors, e.g. the level of optimization of the SDL version used and also the graphics hardware used and also the target platform. I don't think on modern systems like Windows & macOS software drawing mode is much slower with RebelSDL because these systems have lots of horsepower. It's only on Amiga systems where things like Circle() could become noticably slower with RebelSDL but of course there is a solution here too: If you need fast Circle() performance, then draw that circle into a brush and convert that brush into a hardware brush and then draw it using DisplayBrush().