Go to advanced search

by audetto
Mon May 17, 2021 4:54 pm
Forum: Raspberry Pi OS
Topic: Raspbian OS research
Replies: 4
Views: 823

Re: Raspbian OS research

What memory management technique does the Raspbian OS use? A complete answer to this question will probably take a few books. There are so many layers of memory and types of allocation that if you are not more specific, it will be hard to answer anything meaningful. From physical memory to the resu...
by audetto
Mon May 17, 2021 8:50 am
Forum: Raspberry Pi OS
Topic: libslirp in Raspberry Pi OS
Replies: 2
Views: 237

Re: libslirp in Raspberry Pi OS

Why Backport ? Bullseye is due for release sometime this Summer. Do you mean as in available in Raspberry Pi OS this Summer? If this is the case, ok I can wait. Why not build package from Source ?? https://gitlab.freedesktop.org/slirp/libslirp Compiling is trivial, but it makes any dependent projec...
by audetto
Mon May 17, 2021 7:18 am
Forum: Raspberry Pi OS
Topic: libslirp in Raspberry Pi OS
Replies: 2
Views: 237

libslirp in Raspberry Pi OS

Hi, I am writing an emulator and found this package really useful to emulate the network. Unfortunately it does not exist on a Pi, but I can see it in Debian https://packages.debian.org/search?keywords=libslirp The one I would like to query about is for "buster-backports". Can it be made a...
by audetto
Wed Apr 07, 2021 8:43 am
Forum: Gaming
Topic: NEW: another AppleWin port
Replies: 10
Views: 798

Re: NEW: another AppleWin port

Raspberry Pi 4 ... and I have no idea what the KMS settings are. Default? I don't mess with that stuff. Strange, on mi Pi4 qapple works in all KMS configurations (including the default). But, you are better off with sa2 anyway. I don't mess with that stuff. Other emulators don't seem to need it Thi...
by audetto
Tue Apr 06, 2021 6:58 pm
Forum: Gaming
Topic: NEW: another AppleWin port
Replies: 10
Views: 798

Re: NEW: another AppleWin port

scruss wrote:
Tue Apr 06, 2021 6:33 pm
Thanks.

I couldn't get qapple to do anything beyond a blank screen on a Raspberry Pi, though
Strange, what Pi & KMS settings do you exactly have?
by audetto
Tue Apr 06, 2021 3:41 pm
Forum: Gaming
Topic: NEW: another AppleWin port
Replies: 10
Views: 798

Re: NEW: another AppleWin port

Ah, that's a bit better, thanks. But with qapple everything works and the interface is more traditional. Performance is not as good as SDL though. Can't seem to add disks once it's started, though. I can start things from the command line: sa2 --imgui --d1 ./OregonTrail-AppleII.dsk but can't do any...
by audetto
Tue Apr 06, 2021 7:18 am
Forum: Gaming
Topic: NEW: another AppleWin port
Replies: 10
Views: 798

Re: NEW: another AppleWin port

scruss wrote:
Sun Apr 04, 2021 7:37 pm
This gave a qapple binary in /usr/local/bin
There should be a sa2 too.

qapple is the Qt version, but you will get better results with SDL + ImGui.

Run

Code: Select all

sa2 --imgui
I will probably make this more the default.
by audetto
Sun Apr 04, 2021 1:50 pm
Forum: Gaming
Topic: NEW: another AppleWin port
Replies: 10
Views: 798

NEW: another AppleWin port

Hi, I've been working on this side project for a few years and wanted to make it a bit more public. https://github.com/audetto/AppleWin This is yet another port of AppleWin to Linux / Pi. The good thing this time is that the emulator code runs 100% the same code as AppleWin which is weekly merged (w...
by audetto
Thu Apr 01, 2021 3:18 pm
Forum: OpenGLES
Topic: Profiling OpenGLES2 calls? Is it possible?
Replies: 3
Views: 1807

Re: Profiling OpenGLES2 calls? Is it possible?

The behaviour you describe is inline with what I see.
I guess I will follow your last suggestion and experiment with modification of the code to see the impact on frame rate.

Thanks
by audetto
Thu Mar 25, 2021 8:51 am
Forum: OpenGLES
Topic: Profiling OpenGLES2 calls? Is it possible?
Replies: 3
Views: 1807

Profiling OpenGLES2 calls? Is it possible?

I have been trying to profile my application to see exactly where time is spent. I put timers around different calls and look at averages. This is an app running in SDL X11. Have disabled vsync. Results are very very hard to understand. After stripping out most of the code, the main loop calls glTex...
by audetto
Sat Feb 20, 2021 5:23 pm
Forum: OpenGLES
Topic: Understanding maximum FPS on Pi4
Replies: 17
Views: 3648

Re: Understanding maximum FPS on Pi4

Thanks, it's a "bit" complicated...
by audetto
Sat Feb 20, 2021 3:50 pm
Forum: OpenGLES
Topic: Understanding maximum FPS on Pi4
Replies: 17
Views: 3648

Re: Understanding maximum FPS on Pi4

rpiMike wrote:
Fri Feb 19, 2021 6:28 pm
Maybe you should try the vulkan drivers:

https://www.youtube.com/watch?v=ygBB3D5vryw
You seem to be using ImGui. Is the source code available?
I am interested in how you setup the renderer and backend.
by audetto
Sat Feb 20, 2021 3:48 pm
Forum: OpenGLES
Topic: Understanding maximum FPS on Pi4
Replies: 17
Views: 3648

Re: Understanding maximum FPS on Pi4

so what is the catch? The kms driver is considered beta currently, but it's being actively worked on and is where we are heading. You lose some legacy firmware interfaces (e.g. dispmanx, tvservice) and need to use the standard linux ones (drm). Done more tests of the real emulator, which uses GLES ...
by audetto
Fri Feb 19, 2021 6:03 pm
Forum: OpenGLES
Topic: Understanding maximum FPS on Pi4
Replies: 17
Views: 3648

Re: Understanding maximum FPS on Pi4

I know

60 was just a coincidence, now it was runnning about 55.
my glfw example does just a bit better at 62.
by audetto
Fri Feb 19, 2021 5:52 pm
Forum: OpenGLES
Topic: Understanding maximum FPS on Pi4
Replies: 17
Views: 3648

Re: Understanding maximum FPS on Pi4

Yep, it makes a massive difference at full screen (or almost) the glfw demo now runs at 60fps same for glxgears but sdl2+imgui goes at 110 when it paints a texture and >200 with just a blank screen. this uses GLES 2, if it makes any difference for such a simple task. too good to be true, so what is ...
by audetto
Fri Feb 19, 2021 1:58 pm
Forum: OpenGLES
Topic: Understanding maximum FPS on Pi4
Replies: 17
Views: 3648

Re: Understanding maximum FPS on Pi4

If you're filling the whole screen, or are using double-buffering it will be slow; I've seen over 300 FPS with a smaller window, and single-buffering, see https://iosoft.blog/oscilloscope-display-opengl-raspberry-pi/ I get similar to the link above, where it says 480x300 @ 273: I get around 470fps ...
by audetto
Thu Feb 18, 2021 8:37 pm
Forum: OpenGLES
Topic: Understanding maximum FPS on Pi4
Replies: 17
Views: 3648

Understanding maximum FPS on Pi4

Hi, I have been developing an emulator for Pi3/4 and have found that the maximum full screen FPS under X11 the Pi4 can do is limited to about 30. My monitor is 1920x1080. The same results is obtained in my code with SDL+ImGui, glfw (https://github.com/audetto/GLFW-Pi4-Demo) or glxgears from mesa-uti...
by audetto
Sat Feb 13, 2021 4:47 pm
Forum: OpenGLES
Topic: AA is painfully slow on OpenGLES3.0
Replies: 2
Views: 1926

Re: AA is painfully slow on OpenGLES3.0

Since I just started with GLES, can I ask you exactly how you exactly enable the antia-aliasing?
I can read GL_SAMPLE_BUFFERS but I have no idea how to set it.
Cheers
by audetto
Sat Feb 13, 2021 1:45 pm
Forum: OpenGLES
Topic: Pi4 + GLES: slow with big window
Replies: 12
Views: 3515

Re: Pi4 + GLES: slow with big window

Thank you for the suggestions. I have disabled vsync and removed all processing logic so my code is now just rendering a blank texture at maximum speed. It uses SDL + ImGui tailored for GLES2 It is indeed correct that the bigger the window, the longer to draw it. I would expect a linear relationship...
by audetto
Mon Feb 08, 2021 4:13 pm
Forum: OpenGLES
Topic: Pi4 + GLES: slow with big window
Replies: 12
Views: 3515

Re: Pi4 + GLES: slow with big window

About vsync: vsync is enabled on PC and Pi4. On PC it always run are 60 whatever the size, same CPU usage. On Pi, small window runs at 60 (CPU ~40%), big window drops to 30. CPU usage ~50%. CPU usage on the Pi is a bit irrelevant because I think it constantly misses a sync and needs to sleep to the ...
by audetto
Mon Feb 08, 2021 1:53 pm
Forum: OpenGLES
Topic: Pi4 + GLES: slow with big window
Replies: 12
Views: 3515

Pi4 + GLES: slow with big window

Hi, I am developing an app with SDL + GLES2 on a Pi4 with Fake KMS in X11 (but same used to happen on Pi3 with Fake KMS) What happens is that the final render to screen: SDL_GL_SwapWindow take time proportional to the size of the window. Not that it is unexpected, but it is very strange. On a Intel ...
by audetto
Sun Feb 07, 2021 8:54 am
Forum: OpenGLES
Topic: Understanding OpenGL
Replies: 17
Views: 3497

Re: Understanding OpenGL

I agree with you. Tried to learn Vulkan at https://vulkan-tutorial.com/ and it looks to me it is not for humans to write, at least not me. It is like writing assembly. I hope in the future I can just select a SDL Vulkan Renderer and be done with it. I don't think OpenGL is "bad", it is jus...
by audetto
Thu Feb 04, 2021 10:19 pm
Forum: OpenGLES
Topic: Understanding OpenGL
Replies: 17
Views: 3497

Re: Understanding OpenGL

I am slowly getting there. GL_BGRA_EXT seem to be really part of the extension GL_EXT_texture_format_BGRA8888 as well as GL_APPLE_texture_format_BGRA8888, even though in the header files it appears under the latter. Now, GL_EXT_texture_format_BGRA8888 is actually declared as supported, so it is all ...
by audetto
Wed Feb 03, 2021 12:47 pm
Forum: OpenGLES
Topic: Understanding OpenGL
Replies: 17
Views: 3497

Re: Understanding OpenGL

And I have another question. Is it possible to run the Pi4 in GLES2 mode, as opposed to GLES3 mode? I have the feeling that the hardware only has 1 mode which is a sort of super set of both. So if I really want to try GLES2 I need a Pi3. So about your question if a hardware reports extensions, nobod...
by audetto
Wed Feb 03, 2021 12:41 pm
Forum: OpenGLES
Topic: Understanding OpenGL
Replies: 17
Views: 3497

Re: Understanding OpenGL

Your explanation helped me to tidy up a things. So now I have only one issue with GL_BGRA_EXT defined in gl2ext.h. It is actually defined twice (same value as GL_BGRA_IMG = 0x80E1). This number is not available in gl3.h (and gl3ext.h is empty). GL_UNPACK_ROW_LENGTH_EXT (extension in 2) and been prom...

Go to advanced search