[GA36-MB V1.1 20251025, A33 Gecko, 493MB RAM] OpenGL ES 2 seems to be broken when runs DraStic.

オープン
#139 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
42/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
linux

調査の方向性

Start by comparing how goodluckOS launches DraStic with the EmuELEC script shown in the issue, focusing on the SDL_RENDER_DRIVER setting and launch arguments. Then trace the OpenGL ES 2 rendering path used by DraStic on the GA36-MB; the issue does not identify a project file or test. Done means the striped screen is explained and OpenGL ES 2 renders normally, or the issue is narrowed to the component responsible.

索引モデルが issue の本文から書いたものです。

説明

Hello, Everyone!!

So, recently I tried ripping DraStic out from original firmware for using as a main DS Emulator, but I discovered potential bugs inside the OS. (But I'm not sure yet.)

I've made my own script based from EmulationStation script inside its original firmware. It looks like this,

#!/bin/sh
cd /usr/lib/drastic || exit 1
echo "args: $*" > /tmp/drastic.log
export SDL_RENDER_DRIVER=software   
./drastic "$*" >> /tmp/drastic.log 2>&1
echo "exit code: $?" >> /tmp/drastic.log

This script tells goodluckOS to launch DraStic when Puppy launches this script.
But I discovered a bug probably from OpenGL driver during script launching test.

When I run DraStic with SDL_RENDER_DRIVER=opengles2, DraStic shows up with striped screen like this.
Image
However, when using SDL_RENDER_DRIVER=software, DraStic returns to normal. (But got no performance impact whatsoever)
Image

Script comparison

Original drastic.sh from EmuELEC
#!/bin/bash

cd /storage/.emulationstation/scripts/drastic/
./drastic "$1" > /dev/null 2>&1
  • No export SDL_RENDER_DRIVER line, probably used GPU rendering by default.
Custom drastic.sh in goodluckOS
#!/bin/sh
cd /usr/lib/drastic || exit 1
echo "args: $*" > /tmp/drastic.log
export SDL_RENDER_DRIVER=software   
./drastic "$*" >> /tmp/drastic.log 2>&1
echo "exit code: $?" >> /tmp/drastic.log
  • Aside from logging command I've used earlier to trace down striped screen problem inside the log but found nothing, I've set DraStic to use software rendering as a default for now.

Hope this helps finding some of issues inside the OS! (Or probably, not from the OS itself.)

主要言語
C++
スター
54
フォーク
8
平均マージ
16日 19時間
マージ済み PR(30日)
4

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

CodeZombie/goodluckOS のほかの issue

CodeZombie/goodluckOS の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。