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().
Yes, of course I'm talking about circles whose sizes are the same. If you want the fastest performance, you need to precompute such things. Circle() will algorithmically draw a circle which is of course slower than just copying raw pixel data around which is what DisplayBrush() does. That's why to get ultimate performance you must precompute as much as possible and try to boil everything down to just calls of DisplayBrush() because that is the fastest way to draw graphics because it's essentially just copying of raw pixels, especially if the brush is a hardware brush which means that it's in GPU memory so it can be copied in next to no time.Bugala wrote: ↑Sat Aug 01, 2026 9:07 pm Asking for a bit of clarification for that making Circle into hardware Brush suggestion.
Do you mean that it is faster to createBrush, drawCircle into that newly created brush, and then DisplayBrush, than it is to simply Draw A Circle?
Or do you mean that if Circle is same sized every frame, then it is faster to CreateBrush, Draw a circle to that brush, and then instead of using Circle every cycle, it is faster to use that DisplayBrush every cycle?
As in, If Circles size keeps changing every cycle, then your suggestion doesnt work? But it requires that Circle stays the same for multiple cycles, to be a faster solution.