flycast icon indicating copy to clipboard operation
flycast copied to clipboard

Libretro core cant enable openGL on Linuxmint

Open Littlemac123 opened this issue 10 months ago • 6 comments

Please Note: This form is the minimum required information for submitting bugs.
Removing this form may lead to your issue being closed until it is completed.

Platform / OS / Hardware:

Flycast version:5866e97 Libretro: 1.20.0

Hardware: little_mac@iMac:~$ sudo cpu-x -D [sudo] password for little_mac:
CPU-X:util.c:317: an error occurred while running command 'echo 03: core 150 MHz shader 300 MHz vdec 150 MHz | grep -oP '(?<=memory )[^ ]*'' (fgets)

CPU <<<<<<<<<<

***** Processor *****
      Vendor: Intel
   Code Name: Wolfdale (Core 2 Duo) 3M
     Package: U2E1
  Technology: 45 nm
     Voltage: 2,250 V

Specification: Intel(R) Core(TM)2 Duo CPU P7550 @ 2.26GHz Family: 0x6 Ext. Family: 0x6 Model: 0x7 Ext. Model: 0x17 Temp.: 42,00°C Stepping: 10 Instructions: MMX, SSE(1, 2, 3, 3S, 4.1), VT-x, x86-64

***** Clocks *****
  Core Speed: 2255 MHz
  Multiplier: x6,0 (4,0-6,0)
   Bus Speed: 375,83 MHz
       Usage:  83,79 %

***** Cache *****
     L1 Data: 2 x 32 kB, 8-way
    L1 Inst.: 2 x 32 kB, 8-way
     Level 2: 2 x 3072 kB, 12-way
     Level 3: 

***** * *****
   Socket(s): 1
     Core(s): 2
   Thread(s): 2

Caches <<<<<<<<<<

***** L1 Cache *****
        Size: 2 x 32 kB, 8-way associative, 64-bytes line size
       Speed: 29127,90 MB/s

***** L2 Cache *****
        Size: 2 x 3072 kB, 12-way associative, 64-bytes line size
       Speed: 11064,60 MB/s

Motherboard <<<<<<<<<<

***** Motherboard *****
Manufacturer: Apple Inc.
       Model: Mac-F2218EA9
    Revision: Not Specified

***** BIOS *****
       Brand: Apple Inc.
     Version:     IM91.88Z.008D.B08.0904271717
        Date: 04/27/09
    ROM Size: 1024 kB / 4096 kB

***** Chipset *****
      Vendor: NVIDIA Corporation
       Model: MCP79 LPC Bridge

Memory <<<<<<<<<<

***** Bank 0 *****
   Reference: 0x80CE 0x4D34373142353737334448302D4348392020, 2048 MB @ 1067 MHz (SODIMM DDR

***** Bank 1 *****
   Reference: 0x802C 0x384A53463132383634485A2D314731463120, 1024 MB @ 1067 MHz (SODIMM DDR

System <<<<<<<<<<

***** Operating System *****
      Kernel: Linux 6.8.0-52-generic
Distribution: Linux Mint 21.3
    Hostname: iMac
      Uptime: 0 days, 0 hours, 15 minutes, 5 seconds
    Compiler: cc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0

***** Memory *****
        Used: 1,49 GiB / 2,65 GiB
     Buffers: 0,02 GiB / 2,65 GiB
      Cached: 0,78 GiB / 2,65 GiB
        Free: 0,36 GiB / 2,65 GiB
        Swap: 0,67 GiB / 6,65 GiB

Graphics <<<<<<<<<<

***** Card 0 *****
      Vendor: NVIDIA
      Driver: nouveau
 UMD Version: Mesa 23.2.1-1ubuntu3.1~22.04.3
       Model: C79 [GeForce 9400]
    DeviceID: 0x0867:0xB1
   Interface: 
 Temperature: 62,00°C
       Usage: 
Core Voltage: 
   Power Avg: 
   GPU clock: 150 MHz
Memory clock: 
 Memory Used: 

Description of the Issue I cant enable opengl even with flycast.cfg video_driver = “gl” Add a short, concise description of the issue here I really want openGL to enable

retroarch__2025_02_27__23_51_26.log

Debugging Steps Tested

  • Fill in any steps already tried here
  • Begin each new line with an asterisk
  • If no steps are required, please skip

Logs Gathered


Please paste the contents of the log / logs here
You may leave this field blank if you have none.

Screenshots

(Replace this line with any issue screenshots)

Littlemac123 avatar Feb 28 '25 04:02 Littlemac123

Oh wait is this not the libretro flycast Oops do i need to go there im so sorry

Edit: Nvm i see im in the right place :D WHEEEW

Littlemac123 avatar Feb 28 '25 05:02 Littlemac123

Not sure what's going on but it looks like RetroArch can't initialize OpenGL or decides not to use it. On my machine, here is the log I get with the GL driver:

[INFO] [Environ]: GET_PREFERRED_HW_RENDER, video driver name: gl.
[INFO] [Environ]: GET_PREFERRED_HW_RENDER - Context callback set to RETRO_HW_CONTEXT_OPENGL.
[INFO] [Environ]: SET_HW_RENDER, context type: gl.
[INFO] Requesting OpenGL context.
[DEBUG] Reached end of SET_HW_RENDER.

Have you tried the GLCORE driver? On macOS, flycast requests the glcore driver with OpenGL 3.2.

flyinghead avatar Feb 28 '25 09:02 flyinghead

this is a good question but i really dont care about mac os, i do have a mac mini with mac os if u want me to try it but i dont wanna open this thing and take the harddrive out and install mac os

Littlemac123 avatar Feb 28 '25 19:02 Littlemac123

RetroArch can't initialize OpenGL

I can get openGL in the n64 core

Littlemac123 avatar Feb 28 '25 20:02 Littlemac123

Oh and all the ps1 emulatros can get openGL, its just flycast

Littlemac123 avatar Feb 28 '25 20:02 Littlemac123

Hi @Littlemac123 Can you provide some log when using glcore video driver ?

Thank you.

gouchi avatar Apr 22 '25 09:04 gouchi