Go to advanced search

by joyrider3774
Sun May 10, 2020 3:35 pm
Forum: OpenGLES
Topic: Bounty to get SFML-PI and thus attractmode working outside X using KMS / DRM
Replies: 0
Views: 110

Bounty to get SFML-PI and thus attractmode working outside X using KMS / DRM

Hello, I've seen a few people porting Opengl (/es) code to make use of KMS / DRM so that the binaries can run outside X on a raspberry pi 4. A lot of people want to be able to do this for the attract mode frontend on raspberry pi 4 so it can be used instead of emulationstation on retropie (or alongs...
by joyrider3774
Mon May 04, 2020 12:19 am
Forum: OpenGLES
Topic: glmark2-es2-drm slow on Pi4
Replies: 2
Views: 379

Re: glmark2-es2-drm slow on Pi4

This is after a reboot with the cpu governor set to perfomance it scores much more than my initial test [email protected]:~ $ sudo sh -c "echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor" [email protected]:~ $ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor performance [email protected]...
by joyrider3774
Sun May 03, 2020 1:18 pm
Forum: Troubleshooting
Topic: Black screen on RPI4 but works using same sd card & screen on RPI3
Replies: 5
Views: 173

Re: Black screen on RPI4 but works using same sd card & screen on RPI3

The config_hdmi_boost setting is not supposed to work on the Pi4, but several users here have reported it helped them, so...¯\_(ツ)_/¯ The setting has a max value of 11, and what you want is the lowest value that works. If it was me, I'd give it a try (you've got nothing to lose). i actually already...
by joyrider3774
Sun May 03, 2020 11:26 am
Forum: Troubleshooting
Topic: Black screen on RPI4 but works using same sd card & screen on RPI3
Replies: 5
Views: 173

Re: Black screen on RPI4 but works using same sd card & screen on RPI3

I had a great idea after reading that config_hdmi_boost value is ignored on the rpi4 and seeing a led on the lcd driver board indicating signal received never lights up. I was thinking the pi4's hdmi signal was not strong enough to power on the screen even though the screen lcd driver board has its ...
by joyrider3774
Sun May 03, 2020 11:24 am
Forum: Advanced users
Topic: STICKY: HOWTO: Create Custom HDMI modes
Replies: 241
Views: 413965

Re: STICKY: HOWTO: Create Custom HDMI modes

how did you read this edid into a file? Use 'edid-decode' to see if this makes a difference. Have you tried to add below to your config.txt? hdmi_group=2 hdmi_mode=16 using tvservice -d edid.dat have not tried edid-decode. But i had a great idea after reading that config_hdmi_boost value is ignored...
by joyrider3774
Sat May 02, 2020 8:24 pm
Forum: Troubleshooting
Topic: Black screen on RPI4 but works using same sd card & screen on RPI3
Replies: 5
Views: 173

Re: Black screen on RPI4 but works using same sd card & screen on RPI3

this is what the rpi3 reports Enabling fuzzy format match... Parsing edid.dat... HDMI:EDID version 1.4, 0 extensions, screen size 16x12 cm HDMI:EDID features - videodef 0xa2 standby !suspend !active off; colour encoding:RGB444; sRGB is not default colourspace; preferred format is not native; support...
by joyrider3774
Sat May 02, 2020 8:09 pm
Forum: Advanced users
Topic: STICKY: HOWTO: Create Custom HDMI modes
Replies: 241
Views: 413965

Re: STICKY: HOWTO: Create Custom HDMI modes

is it somehow possible to read the values needed for hdmi_timings from a system where the screen works on ? The reason i'm asking is because i have a screen that works on the rpi3 but fails on rpi4 nomatter what i've tried. I have this screen but can't find more info on it https://shop.pimoroni.com/...
by joyrider3774
Fri May 01, 2020 8:30 pm
Forum: OpenGLES
Topic: glmark2-es2-drm slow on Pi4
Replies: 2
Views: 379

Re: glmark2-es2-drm slow on Pi4

when i run it offscreen i seem to be getting a higher score than the 79 you mentioned [email protected]:~/glmark2 $ glmark2-es2-drm --off-screen --size 800x600 --visual-config 'red=8:green=8:blue=8:alpha=8:buffer=0' ======================================================= glmark2 2020.04 ==================...
by joyrider3774
Fri May 01, 2020 7:37 pm
Forum: Troubleshooting
Topic: Black screen on RPI4 but works using same sd card & screen on RPI3
Replies: 5
Views: 173

Re: Black screen on RPI4 but works using same sd card & screen on RPI3

the problem is back now also with this new cable i don't understand it rpi3 is wroking fine with both cable using same system and screens yet this rpi4 is causing me serious headaches
by joyrider3774
Fri May 01, 2020 8:05 am
Forum: Troubleshooting
Topic: Black screen on RPI4 but works using same sd card & screen on RPI3
Replies: 5
Views: 173

Black screen on RPI4 but works using same sd card & screen on RPI3

Hi, I'm having a weird issue with my raspberry pi 4 and my 10 inch picade screen on the raspberry pi 4 my screen remains black, yet if i attach a rpi3 with the same sd card / system to my screen it works. rpi 3 is hooked up directly to the hdmi cable, on rpi4 is use a convertor to be able to use nor...
by joyrider3774
Thu Apr 30, 2020 8:18 pm
Forum: Graphics programming
Topic: Getting better frame rate on glxgears benchmark
Replies: 4
Views: 26180

Re: Getting better frame rate on glxgears benchmark

it's probably due to vsync.

Run glxgears like this from terminal

Code: Select all

vblank_mode=0 glxgears
it disables it only while running
by joyrider3774
Sat Feb 15, 2020 12:12 am
Forum: Official Foundation Display
Topic: Raspberry Pi 4B with 7 inch touchscreen (RPI display v1.1)
Replies: 2
Views: 932

Re: Raspberry Pi 4B with 7 inch touchscreen (RPI display v1.1)

Does it show nothing also not at start up (like the rpi logo in text form). I found out if i had the full opengl driver enabled that my screen would remain black as soon as X got started but i did see some logo / blinking cursor at start up. You could put the card in another rpi and run sudo rasp-co...
by joyrider3774
Fri Feb 14, 2020 8:41 pm
Forum: Official Foundation Display
Topic: Raspberry pi 2 + touchscreen + buster + enabling Full fake KMS opengl driver -> blackscreen
Replies: 0
Views: 313

Raspberry pi 2 + touchscreen + buster + enabling Full fake KMS opengl driver -> blackscreen

Hey, I only noticed this today, when i enable full / fake kms opengl display driver via raspi-config the official touchscreen screen remains black when entering X. It does display info at boot up but as soon as X starts it remains black. The desktop does start as i can connect using VNC but no matte...
by joyrider3774
Fri Feb 14, 2020 7:59 pm
Forum: Gaming
Topic: My Znax game working on raspberry pi
Replies: 1
Views: 182

Re: My Znax game working on raspberry pi

touch screen problems with letterboxing are fixed. I just tried it on the official raspberry pi touchscreen. When the game starts and starting from the Main menu or anywhere else in the game press the F key to toggle fullscreen then everything is visible and you can use the touchscreen to play :) Yo...
by joyrider3774
Fri Feb 14, 2020 7:30 pm
Forum: General programming discussion
Topic: Anyone using SDL2 with official raspberry pi touchscreen ?
Replies: 1
Views: 317

Re: Anyone using SDL2 with official raspberry pi touchscreen ?

ok i managed to fix it. For some reason if the rendertarget in SDL is not the screen i was getting other values. Setting the rendertarget to the screen with using `SDL_SetRenderTarget(Renderer, NULL)` before calling pollevent or just making sure the render target was my screen before calling it fixe...
by joyrider3774
Fri Feb 14, 2020 12:29 am
Forum: Gaming
Topic: My Znax game working on raspberry pi
Replies: 1
Views: 182

My Znax game working on raspberry pi

Hello, I converted an old game i created as a teenager from SDL1 to SDL2 and made it so it works on the raspberry pi in raspbian. My code will probably be bad as i'm no c/c++ developper in normal work life but actually a windows delphi developper so all of these things were very new to me and a lot ...
by joyrider3774
Tue Feb 11, 2020 7:33 pm
Forum: General programming discussion
Topic: Anyone using SDL2 with official raspberry pi touchscreen ?
Replies: 1
Views: 317

Anyone using SDL2 with official raspberry pi touchscreen ?

Hi, I'm creating a little game to be used on the raspberry pi using mouse and keyboard, but i also own an official raspberry pi touchscreen and noticed when using the touchscreen that sdl did not generate mousebutton down events. instead it seems i need to use SDL_TouchFingerEvent for it to work. I ...
by joyrider3774
Tue Feb 11, 2020 3:27 am
Forum: Graphics programming
Topic: Fast(er) image rendering to screen on a Pi3
Replies: 9
Views: 1453

Re: Fast(er) image rendering to screen on a Pi3

Ah yeah, but still it seems that driver is pretty fast in software mode with it's overlay.

btw audetto you could consider running fullscreen and see if you get more fps there is flag for the creation of the window to set it fullscreen
by joyrider3774
Mon Feb 10, 2020 1:40 pm
Forum: Graphics programming
Topic: Fast(er) image rendering to screen on a Pi3
Replies: 9
Views: 1453

Re: Fast(er) image rendering to screen on a Pi3

i made a video of the behaviour i'm seeing both in windows as on the pi with legacy mode driver enabled / opengl driver disabled and where i'm getting a big amount of fps with my game. I don't understand the behaviour with the legacy driver in software mode being faster (fps wise) compared to accele...
by joyrider3774
Sun Feb 09, 2020 7:03 pm
Forum: General programming discussion
Topic: Is it possible to detect if we run X11 legacy or opengl / kms driver ?
Replies: 2
Views: 383

Is it possible to detect if we run X11 legacy or opengl / kms driver ?

Is it possible to detect if we run X11 legacy or opengl / kms driver ? does a value get written somewhere or should i scan /boot/config.txt ? or is there some other way ?
by joyrider3774
Sun Feb 09, 2020 6:43 pm
Forum: Graphics programming
Topic: Fast(er) image rendering to screen on a Pi3
Replies: 9
Views: 1453

Re: Fast(er) image rendering to screen on a Pi3

also try this in legacy mode (no opengl driver) enabled with SDL_RENDERER_SOFTWARE SDL_Texture *buffer = SDL_CreateTexture(ren, SDL_PIXELFORMAT_ARGB8888, SDL_TEXTUREACCESS_TARGET , 640,480); bool blit = true; auto start = std::chrono::steady_clock::now(); long elapsed; int counter = 0; srand (time(N...
by joyrider3774
Sun Feb 09, 2020 1:57 pm
Forum: Graphics programming
Topic: Fast(er) image rendering to screen on a Pi3
Replies: 9
Views: 1453

Re: Fast(er) image rendering to screen on a Pi3

are you completly up to date with your packages ? i just ran your latest version on my raspberry pi3 and i'm getting huge FPS amounts on my pi3 [email protected]:~/projecten/SDL2TEST $ "./SDL2Test" 1425 frames in 5001 ms = 284.943 FPS [email protected]:~/projecten/SDL2TEST $ "./SDL2Test" 1923 frames in 50...
by joyrider3774
Fri Feb 07, 2020 4:52 pm
Forum: General programming discussion
Topic: SFXR + other great tools to create little audio fragments to use in your games
Replies: 0
Views: 254

SFXR + other great tools to create little audio fragments to use in your games

Hey, It's about 10 years ago since i last created games for linuxhandheld devices at that time i was using a little tool called sfxr. I could not remember the tools name at first but i managed to find it back here http://www.drpetter.se/project_sfxr.html . The tool can generate little noises randoml...
by joyrider3774
Thu Feb 06, 2020 10:22 pm
Forum: OpenGLES
Topic: esUtil for OpenGL ES fullscreen using DRM/KMS
Replies: 10
Views: 1292

Re: esUtil for OpenGL ES fullscreen using DRM/KMS

how hard would it be to add KMS / DRM support to SFML-PI from attract mode repo ? I think that's basically all that's needed to get attract mode running outside X. But i'm a windows delphi developper and no C / C++ developper. I have tried hacking up some code but i seem to get nowhere. From what i ...
by joyrider3774
Tue Feb 04, 2020 12:02 am
Forum: Raspberry Pi OS
Topic: Mesa 19.3.2 available for testing
Replies: 39
Views: 4214

Re: Mesa 19.3.2 available for testing

i did not enable it myselve but must have been enabled by default. I went into raspi-config and disabled the xcompmanager entry explicitly. Now i get the following results (1600 ones are no vnc connected, 1300 ones are with vnc connected but i'm still using updated "test" sources from 1st post, but ...

Go to advanced search