Launcher sobre au repos, feuille de route Linux / Steam Deck / sobriété
- le diaporama du bandeau se fige fenêtre en arrière-plan, pendant la partie et après une minute sans interaction : 11 % d'un cœur -> 0 % au repos - partie en cours : un redessin par seconde au lieu de cinq - ROADMAP : section 7 (mesures CPU / RAM / GPU, objectifs, Linux, Steam Deck), état de la traduction française du CD Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
61d5806492
commit
cca1e42272
3 files changed
+88
-5
No files matched your search
+31
-1
@@ -66,7 +66,9 @@ INTRO.EXE stays local (`build/`). Mods replace files at runtime, never touching
|
||||
## 4. Languages and accessibility
|
||||
|
||||
- [ ] Language choice at startup (French, English, depending on the version owned)
|
||||
- [ ] Community translations (text in the `.C` files)
|
||||
- [ ] Community translations (text in the `.C` files): the French CD release is only partly
|
||||
translated (verbs and objects in French, ~80% of the dialogue in English); a `files/` mod can
|
||||
complete `PT1TEXT.C` to `PT3TEXT.C`
|
||||
- [ ] Larger fonts, high-contrast mode
|
||||
|
||||
## 5. Open to mods
|
||||
@@ -88,6 +90,34 @@ INTRO.EXE stays local (`build/`). Mods replace files at runtime, never touching
|
||||
- [ ] Technical wiki based on `ANALYSE_TUCKER.md` (formats, cutscene language, structures)
|
||||
- [ ] README with a before/after gallery (slider, GIF or video)
|
||||
|
||||
## 7. Linux, Steam Deck and resource use
|
||||
|
||||
It is a game from 1996: it must not bring any machine to its knees, whether Windows, Linux or a handheld.
|
||||
|
||||
**Measurements (2026-12-05, i5-14600KF, RTX 5070, windowed):**
|
||||
|
||||
| | CPU (of one core) | RAM | GPU |
|
||||
|---|---|---|---|
|
||||
| Launcher, before | 11% all the time | 137 MB | 2% |
|
||||
| Launcher, now | 0% idle, a few % while animating | 137 MB | 0% idle |
|
||||
| Game (sharp or CRT filter) | ~20% | ~165 MB | 1% |
|
||||
| Game (xBR filter) | ~20% | ~165 MB | 4.6% |
|
||||
|
||||
- [x] Launcher: the banner slideshow freezes when the window is in the background, while the game
|
||||
runs, and after one minute without input (no more redraws)
|
||||
- [ ] Game: wait by sleeping instead of spinning (vsync, next tick, the original game's wait
|
||||
loops), target < 5% of one core on a still screen
|
||||
- [ ] Game: no rendering when nothing changes (still screen, minimized or hidden window)
|
||||
- [ ] RAM: target < 256 MB for the game, even with an HD pack (load HD backgrounds on demand, free
|
||||
those of rooms left behind)
|
||||
- [ ] Linux: build with a Makefile or CMake instead of `build.bat` (SDL2 and OpenGL 3.3 are already
|
||||
portable; only `menu.c` and `mods.c` contain Windows-specific code)
|
||||
- [ ] Launcher on Linux: native file dialogs, ISO mounting (`udisksctl`), opening folders
|
||||
(`xdg-open`), settings in `~/.config`
|
||||
- [ ] Steam Deck: 1280×800 fullscreen (16:10, like the HD backgrounds), gamepad (see section 3),
|
||||
on-screen keyboard to name saves, light default filter for battery life
|
||||
- [ ] Packages: AppImage or Flatpak (without the game files), added as a "non-Steam game"
|
||||
|
||||
---
|
||||
|
||||
## Top 5 for the first public release
|
||||
|
||||
+31
-1
@@ -69,7 +69,9 @@ jamais modifier les originaux.
|
||||
## 4. Langues et accessibilité
|
||||
|
||||
- [ ] Choix de la langue au lancement (français, anglais selon la version possédée)
|
||||
- [ ] Traductions de la communauté (textes des fichiers `.C`)
|
||||
- [ ] Traductions de la communauté (textes des fichiers `.C`) : la version française du CD n'est
|
||||
traduite qu'en partie (verbes et objets en français, ~80 % des dialogues en anglais) ;
|
||||
un mod `files/` peut compléter `PT1TEXT.C` à `PT3TEXT.C`
|
||||
- [ ] Polices agrandies, mode contraste élevé
|
||||
|
||||
## 5. Ouvert aux mods
|
||||
@@ -92,6 +94,34 @@ jamais modifier les originaux.
|
||||
- [ ] Wiki technique tiré de `ANALYSE_TUCKER.md` (formats, langage des cinématiques, structures)
|
||||
- [ ] README avec une galerie avant/après (curseur glissant, GIF ou vidéo)
|
||||
|
||||
## 7. Linux, Steam Deck et sobriété
|
||||
|
||||
C'est un jeu de 1996 : il ne doit mettre à genoux aucune machine, ni Windows, ni Linux, ni une console portable.
|
||||
|
||||
**Mesures (2026-12-05, i5-14600KF, RTX 5070, fenêtré) :**
|
||||
|
||||
| | CPU (d'un cœur) | RAM | GPU |
|
||||
|---|---|---|---|
|
||||
| Launcher, avant | 11 % en permanence | 137 Mo | 2 % |
|
||||
| Launcher, maintenant | 0 % au repos, quelques % en animation | 137 Mo | 0 % au repos |
|
||||
| Jeu (filtre net ou CRT) | ~20 % | ~165 Mo | 1 % |
|
||||
| Jeu (filtre xBR) | ~20 % | ~165 Mo | 4,6 % |
|
||||
|
||||
- [x] Launcher : le diaporama du bandeau se fige quand la fenêtre est en arrière-plan, pendant la
|
||||
partie et après une minute sans interaction (plus aucun redessin)
|
||||
- [ ] Jeu : attendre en dormant au lieu de boucler (attente de la vsync, du prochain tic, des
|
||||
boucles d'attente du jeu d'origine), objectif < 5 % d'un cœur à l'arrêt sur un écran
|
||||
- [ ] Jeu : pas de rendu quand rien ne change (écran fixe, fenêtre réduite ou masquée)
|
||||
- [ ] RAM : objectif < 256 Mo pour le jeu, même avec un pack HD (charger les décors HD à la demande,
|
||||
libérer ceux des lieux quittés)
|
||||
- [ ] Linux : construction par Makefile ou CMake à la place de `build.bat` (SDL2 et OpenGL 3.3 sont
|
||||
déjà portables ; seuls `menu.c` et `mods.c` contiennent du code propre à Windows)
|
||||
- [ ] Launcher sous Linux : dialogues de fichiers natifs, montage de l'ISO (`udisksctl`), ouverture des
|
||||
dossiers (`xdg-open`), réglages dans `~/.config`
|
||||
- [ ] Steam Deck : plein écran 1280×800 (16:10, comme les décors HD), manette (voir section 3),
|
||||
clavier virtuel pour nommer les sauvegardes, filtre léger par défaut pour l'autonomie
|
||||
- [ ] Paquets : AppImage ou Flatpak (sans les fichiers du jeu), ajout comme « jeu non-Steam »
|
||||
|
||||
---
|
||||
|
||||
## Top 5 pour la première version publique
|
||||
|
||||
+26
-3
@@ -575,6 +575,10 @@ struct App {
|
||||
checks: Checks,
|
||||
busy: Busy,
|
||||
game_running: bool,
|
||||
/// horloge egui de la dernière interaction (souris, clavier) : le diaporama se fige après une minute sans rien
|
||||
last_input: f64,
|
||||
/// instant affiché quand le diaporama est figé
|
||||
frozen_t: f32,
|
||||
last_ok: Option<bool>,
|
||||
last_exit: Option<i32>,
|
||||
log: Vec<String>,
|
||||
@@ -628,6 +632,8 @@ impl App {
|
||||
checks: Checks::default(),
|
||||
busy: Busy::No,
|
||||
game_running: false,
|
||||
last_input: 0.0,
|
||||
frozen_t: 0.0,
|
||||
last_ok: None,
|
||||
last_exit: None,
|
||||
log: Vec::new(),
|
||||
@@ -1341,7 +1347,18 @@ impl App {
|
||||
let (rect, _) = ui.allocate_exact_size(egui::vec2(ui.available_width(), h), egui::Sense::hover());
|
||||
let p = ui.painter_at(rect);
|
||||
p.rect_filled(rect, 0.0, CARD_DARK);
|
||||
let t = ui.input(|i| i.time) as f32;
|
||||
// sobriété : l'animation (fondu, glissement, logo) ne tourne que fenêtre active, hors partie,
|
||||
// et pendant une minute après la dernière interaction ; sinon l'image reste figée et
|
||||
// le launcher ne redessine plus rien tant qu'on ne le touche pas (~0 % de CPU)
|
||||
let (now, touched, focused) = ui.input(|i| {
|
||||
(i.time, !i.events.is_empty() || i.pointer.is_moving(), i.viewport().focused.unwrap_or(true))
|
||||
});
|
||||
if touched {
|
||||
self.last_input = now;
|
||||
}
|
||||
let animate = focused && !self.game_running && now - self.last_input < 60.0;
|
||||
let t = if animate { now as f32 } else { self.frozen_t };
|
||||
self.frozen_t = t;
|
||||
self.refresh_hd();
|
||||
let shown = self.hd_shown();
|
||||
let tex = |i: usize| -> &egui::TextureHandle {
|
||||
@@ -1362,7 +1379,10 @@ impl App {
|
||||
if fade > 0.0 {
|
||||
paint_cover(&p, rect, tex((k + 1) % n), fade, drift(k + 1, phase - per));
|
||||
}
|
||||
ui.ctx().request_repaint();
|
||||
// 25 images/s suffisent pour un glissement lent ; figé : aucun redessin programmé
|
||||
if animate {
|
||||
ui.ctx().request_repaint_after(std::time::Duration::from_millis(40));
|
||||
}
|
||||
}
|
||||
p.rect_filled(rect, 0.0, Color32::from_black_alpha(120));
|
||||
// dégradé vers le fond de la fenêtre
|
||||
@@ -1682,8 +1702,11 @@ fn dunce(p: &Path) -> String {
|
||||
impl eframe::App for App {
|
||||
fn ui(&mut self, ui: &mut egui::Ui, _frame: &mut eframe::Frame) {
|
||||
self.pump();
|
||||
if self.busy != Busy::No || self.game_running {
|
||||
// tâche en cours : 5 images/s pour le journal ; partie lancée : 1 par seconde suffit
|
||||
if self.busy != Busy::No {
|
||||
ui.ctx().request_repaint_after(std::time::Duration::from_millis(200));
|
||||
} else if self.game_running {
|
||||
ui.ctx().request_repaint_after(std::time::Duration::from_millis(1000));
|
||||
}
|
||||
|
||||
egui::Panel::top("banner").frame(egui::Frame::NONE).show(ui, |ui| self.banner(ui));
|
||||
|
||||
Reference in new issue
Block a user