is dos.library version, but is not compatible, with C standard, %d is short, while C standard %d is int. when using int on Printf you need to use %ld.
DebugPrintF
I agree this is mistake to use "F" at the end, it means that you have add "Debug" and change "f" to "F" when your coding. anyway I think DebugPrintF is following the more modern standard of printf, not Printf, but I have to check docs.
(NutsAboutAmiga)
Basilisk II for AmigaOS4 AmigaInputAnywhere Excalibur and other tools and apps.
sdlbenchmark on my SAM460ex with Radeon HD6570, no problems so far: #list SDK Dir ----rwed Hoy 23:32:43 COPYING.txt 930 ----rw-d 05-Jul-18 14:47:00 Install 629 -s--rwed Domingo 16:59:58 Install.info 18168 ----rw-d 18-Feb-18 14:54:46 README-amigaos4.md 4988 ----rwed Domingo 16:56:50 README-SDL.txt 433 ----rw-d 05-Jul-18 14:46:34 sample.bmp 69202 ----rw-d 05-Jul-18 14:46:44 sdl2benchmark 122266 ----rwed Domingo 17:04:12 #sdl2benchmark INFO: SDL2 renderer benchmark v. 0.5 (SDL version 2.0.8) INFO: This tool measures the speed of various 2D drawing features INFO: Press ESC key to quit INFO: Parameters: width 800, height 600, renderer name '(null)', iterations 100, objects 100, sleep 0 INFO: Image size 408*167 INFO: Pixel format 0x16161804 (SDL_PIXELFORMAT_RGB888) INFO: Starting to test renderer called [compositing], flags 0xE INFO: Points [mode: None]...100 frames drawn in 0.067 seconds => 1483.8 frames per second INFO: Points [mode: Blend]...100 frames drawn in 0.060 seconds => 1657.1 frames per second INFO: Points [mode: Add]...100 frames drawn in 0.060 seconds => 1677.2 frames per second INFO: Points [mode: Mod]...100 frames drawn in 0.060 seconds => 1675.7 frames per second INFO: Lines [mode: None]...100 frames drawn in 0.331 seconds => 302.5 frames per second INFO: Lines [mode: Blend]...100 frames drawn in 1.825 seconds => 54.8 frames per second INFO: Lines [mode: Add]...100 frames drawn in 1.776 seconds => 56.3 frames per second INFO: Lines [mode: Mod]...100 frames drawn in 1.824 seconds => 54.8 frames per second INFO: FillRects [mode: None]...100 frames drawn in 0.328 seconds => 304.9 frames per second INFO: FillRects [mode: Blend]...100 frames drawn in 0.439 seconds => 228.0 frames per second INFO: FillRects [mode: Add]...100 frames drawn in 0.435 seconds => 229.7 frames per second INFO: FillRects [mode: Mod]...100 frames drawn in 0.438 seconds => 228.2 frames per second INFO: RenderCopy [mode: None]...100 frames drawn in 0.054 seconds => 1859.9 frames per second INFO: RenderCopy [mode: Blend]...100 frames drawn in 0.055 seconds => 1816.6 frames per second INFO: RenderCopy [mode: Add]...100 frames drawn in 0.055 seconds => 1821.9 frames per second INFO: [prepareTexture]Failed to set texture blend mode: INFO: RenderCopyEx [mode: None]...100 frames drawn in 0.053 seconds => 1876.5 frames per second INFO: RenderCopyEx [mode: Blend]...100 frames drawn in 0.055 seconds => 1828.0 frames per second INFO: RenderCopyEx [mode: Add]...100 frames drawn in 0.055 seconds => 1833.8 frames per second INFO: [prepareTexture]Failed to set texture blend mode: INFO: Color modulation [mode: None]...100 frames drawn in 0.298 seconds => 336.0 frames per second INFO: Color modulation [mode: Blend]...100 frames drawn in 0.302 seconds => 331.2 frames per second INFO: Color modulation [mode: Add]...100 frames drawn in 0.296 seconds => 337.8 frames per second INFO: [prepareTexture]Failed to set texture blend mode: INFO: Alpha modulation [mode: None]...100 frames drawn in 0.054 seconds => 1857.0 frames per second INFO: Alpha modulation [mode: Blend]...100 frames drawn in 0.055 seconds => 1806.0 frames per second INFO: Alpha modulation [mode: Add]...100 frames drawn in 0.053 seconds => 1896.0 frames per second INFO: [prepareTexture]Failed to set texture blend mode: INFO: UpdateTexture [mode: None]...100 frames drawn in 0.085 seconds => 1175.5 frames per second, 1222.6 operations per second INFO: UpdateTexture [mode: Blend]...100 frames drawn in 0.080 seconds => 1242.9 frames per second, 1292.6 operations per second INFO: UpdateTexture [mode: Add]...100 frames drawn in 0.087 seconds => 1149.1 frames per second, 1195.1 operations per second INFO: [prepareTexture]Failed to set texture blend mode: INFO: ReadPixels [mode: None]...0 frames drawn in 0.831 seconds => 0.0 frames per second, 120.4 operations per second INFO: ReadPixels [mode: Blend]...0 frames drawn in 0.892 seconds => 0.0 frames per second, 112.0 operations per second INFO: ReadPixels [mode: Add]...0 frames drawn in 0.851 seconds => 0.0 frames per second, 117.5 operations per second INFO: [prepareTexture]Failed to set texture blend mode: INFO: Starting to test renderer called [opengl], flags 0x2 INFO: Points [mode: None]...100 frames drawn in 0.156 seconds => 639.4 frames per second INFO: Points [mode: Blend]...100 frames drawn in 0.156 seconds => 640.2 frames per second INFO: Points [mode: Add]...100 frames drawn in 0.156 seconds => 642.2 frames per second INFO: Points [mode: Mod]...100 frames drawn in 0.155 seconds => 643.2 frames per second INFO: Lines [mode: None]...100 frames drawn in 0.458 seconds => 218.5 frames per second INFO: Lines [mode: Blend]...100 frames drawn in 0.453 seconds => 220.5 frames per second INFO: Lines [mode: Add]...100 frames drawn in 0.460 seconds => 217.2 frames per second INFO: Lines [mode: Mod]...100 frames drawn in 0.453 seconds => 220.5 frames per second INFO: FillRects [mode: None]...100 frames drawn in 1.173 seconds => 85.3 frames per second INFO: FillRects [mode: Blend]...100 frames drawn in 1.177 seconds => 85.0 frames per second INFO: FillRects [mode: Add]...100 frames drawn in 1.172 seconds => 85.3 frames per second INFO: FillRects [mode: Mod]...100 frames drawn in 1.171 seconds => 85.4 frames per second INFO: RenderCopy [mode: None]...100 frames drawn in 0.133 seconds => 749.2 frames per second INFO: RenderCopy [mode: Blend]...100 frames drawn in 0.141 seconds => 711.7 frames per second INFO: RenderCopy [mode: Add]...100 frames drawn in 0.141 seconds => 711.6 frames per second INFO: RenderCopy [mode: Mod]...100 frames drawn in 0.142 seconds => 705.5 frames per second INFO: RenderCopyEx [mode: None]...100 frames drawn in 0.136 seconds => 735.1 frames per second INFO: RenderCopyEx [mode: Blend]...100 frames drawn in 0.140 seconds => 714.4 frames per second INFO: RenderCopyEx [mode: Add]...100 frames drawn in 0.140 seconds => 712.9 frames per second INFO: RenderCopyEx [mode: Mod]...100 frames drawn in 0.140 seconds => 713.5 frames per second INFO: Color modulation [mode: None]...100 frames drawn in 0.128 seconds => 782.5 frames per second INFO: Color modulation [mode: Blend]...100 frames drawn in 0.133 seconds => 749.5 frames per second INFO: Color modulation [mode: Add]...100 frames drawn in 0.128 seconds => 782.9 frames per second INFO: Color modulation [mode: Mod]...100 frames drawn in 0.128 seconds => 782.5 frames per second INFO: Alpha modulation [mode: None]...100 frames drawn in 0.134 seconds => 748.7 frames per second INFO: Alpha modulation [mode: Blend]...100 frames drawn in 0.137 seconds => 730.9 frames per second INFO: Alpha modulation [mode: Add]...100 frames drawn in 0.137 seconds => 731.2 frames per second INFO: Alpha modulation [mode: Mod]...100 frames drawn in 0.142 seconds => 704.4 frames per second INFO: UpdateTexture [mode: None]...100 frames drawn in 0.151 seconds => 660.6 frames per second, 687.0 operations per second INFO: UpdateTexture [mode: Blend]...100 frames drawn in 0.155 seconds => 643.7 frames per second, 669.4 operations per second INFO: UpdateTexture [mode: Add]...100 frames drawn in 0.156 seconds => 640.2 frames per second, 665.8 operations per second INFO: UpdateTexture [mode: Mod]...100 frames drawn in 0.155 seconds => 644.2 frames per second, 669.9 operations per second INFO: ReadPixels [mode: None]...0 frames drawn in 1.320 seconds => 0.0 frames per second, 75.8 operations per second INFO: ReadPixels [mode: Blend]...0 frames drawn in 1.296 seconds => 0.0 frames per second, 77.2 operations per second INFO: ReadPixels [mode: Add]...0 frames drawn in 1.303 seconds => 0.0 frames per second, 76.8 operations per second INFO: ReadPixels [mode: Mod]...0 frames drawn in 1.277 seconds => 0.0 frames per second, 78.3 operations per second INFO: Failed to create renderer: Failed to create OpenGL ES 2 context INFO: Starting to test renderer called [software], flags 0x9 INFO: Points [mode: None]...100 frames drawn in 0.582 seconds => 171.9 frames per second INFO: Points [mode: Blend]...100 frames drawn in 0.587 seconds => 170.2 frames per second INFO: Points [mode: Add]...100 frames drawn in 0.589 seconds => 169.8 frames per second INFO: Points [mode: Mod]...100 frames drawn in 0.588 seconds => 170.1 frames per second INFO: Lines [mode: None]...100 frames drawn in 0.945 seconds => 105.8 frames per second INFO: Lines [mode: Blend]...100 frames drawn in 1.249 seconds => 80.0 frames per second INFO: Lines [mode: Add]...100 frames drawn in 1.259 seconds => 79.5 frames per second INFO: Lines [mode: Mod]...100 frames drawn in 1.238 seconds => 80.8 frames per second INFO: FillRects [mode: None]...100 frames drawn in 3.234 seconds => 30.9 frames per second INFO: FillRects [mode: Blend]...100 frames drawn in 8.404 seconds => 11.9 frames per second INFO: FillRects [mode: Add]...100 frames drawn in 8.149 seconds => 12.3 frames per second INFO: FillRects [mode: Mod]...100 frames drawn in 7.288 seconds => 13.7 frames per second INFO: RenderCopy [mode: None]...100 frames drawn in 0.803 seconds => 124.6 frames per second INFO: RenderCopy [mode: Blend]...100 frames drawn in 1.270 seconds => 78.7 frames per second INFO: RenderCopy [mode: Add]...100 frames drawn in 1.213 seconds => 82.4 frames per second INFO: RenderCopy [mode: Mod]...100 frames drawn in 1.176 seconds => 85.1 frames per second INFO: RenderCopyEx [mode: None]...100 frames drawn in 7.428 seconds => 13.5 frames per second INFO: RenderCopyEx [mode: Blend]...100 frames drawn in 2.535 seconds => 39.4 frames per second INFO: RenderCopyEx [mode: Add]...100 frames drawn in 3.392 seconds => 29.5 frames per second INFO: RenderCopyEx [mode: Mod]...100 frames drawn in 4.832 seconds => 20.7 frames per second INFO: Color modulation [mode: None]...100 frames drawn in 0.682 seconds => 146.5 frames per second INFO: Color modulation [mode: Blend]...100 frames drawn in 0.728 seconds => 137.3 frames per second INFO: Color modulation [mode: Add]...100 frames drawn in 0.726 seconds => 137.8 frames per second INFO: Color modulation [mode: Mod]...100 frames drawn in 0.721 seconds => 138.8 frames per second INFO: Alpha modulation [mode: None]...100 frames drawn in 0.988 seconds => 101.2 frames per second INFO: Alpha modulation [mode: Blend]...100 frames drawn in 1.404 seconds => 71.2 frames per second INFO: Alpha modulation [mode: Add]...100 frames drawn in 1.361 seconds => 73.5 frames per second INFO: Alpha modulation [mode: Mod]...100 frames drawn in 1.241 seconds => 80.6 frames per second INFO: UpdateTexture [mode: None]...100 frames drawn in 1.015 seconds => 98.5 frames per second, 102.4 operations per second INFO: UpdateTexture [mode: Blend]...100 frames drawn in 1.439 seconds => 69.5 frames per second, 72.3 operations per second INFO: UpdateTexture [mode: Add]...100 frames drawn in 1.378 seconds => 72.6 frames per second, 75.5 operations per second INFO: UpdateTexture [mode: Mod]...100 frames drawn in 1.292 seconds => 77.4 frames per second, 80.5 operations per second INFO: ReadPixels [mode: None]...0 frames drawn in 0.133 seconds => 0.0 frames per second, 749.8 operations per second INFO: ReadPixels [mode: Blend]...0 frames drawn in 0.130 seconds => 0.0 frames per second, 767.0 operations per second INFO: ReadPixels [mode: Add]...0 frames drawn in 0.132 seconds => 0.0 frames per second, 756.6 operations per second INFO: ReadPixels [mode: Mod]...0 frames drawn in 0.137 seconds => 0.0 frames per second, 728.3 operations per second INFO: Bye bye #
Not sure if this fits, but as it's using SDL/OpenGL i'm trying.
I have a port which i want to make work at 100%. Right now 75% are done, missing only the OpenGL part.
This, however, compiles fine, but crashes on start. Reason is, that an OpenGL extension is used (and available, at least in our SDK), but refuses to work from the binary.
The extenstion is GL_ARB's framebuffer and texture, added to the code with GL_GLEXT_PROTOTYPES
1) I dont know if MiniGL support changing the (rendering buffer) bitmap on the fly 2) Depending on what you render in your FBO(=bitmap) it may not works (z depth)
@thellier You can't change buffers without FBOs unfortunately, and no Warp3D driver supports that. Only the old ways work, i.e. rendering whatever you need for your "framebuffer" first, and then creating a texture from it with glGetTexImage, which you can overlay your scene with.
This is just like television, only you can see much further.