feat: Increase rendering resolution for Flutter and GLSL renderers to enhance visual clarity

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
2026-03-20 17:45:54 +01:00
parent 5e19f3c098
commit 1e5222368a
3 changed files with 11 additions and 11 deletions

View File

@@ -24,8 +24,8 @@ class WolfFlutterRenderer extends BaseWolfRenderer {
class _WolfFlutterRendererState
extends BaseWolfRendererState<WolfFlutterRenderer> {
static const int _renderWidth = 320;
static const int _renderHeight = 200;
static const int _renderWidth = 640;
static const int _renderHeight = 400;
final SoftwareRenderer _renderer = SoftwareRenderer();
ui.Image? _renderedFrame;
@@ -34,7 +34,8 @@ class _WolfFlutterRendererState
@override
void initState() {
super.initState();
// Match the original Wolf3D software resolution for the pixel renderer.
// Render at 2x canonical resolution so menu/UI edges stay crisp and avoid
// bleed when the output is scaled to the host viewport.
if (widget.engine.frameBuffer.width != _renderWidth ||
widget.engine.frameBuffer.height != _renderHeight) {
widget.engine.setFrameBuffer(_renderWidth, _renderHeight);

View File

@@ -31,8 +31,8 @@ class WolfGlslRenderer extends BaseWolfRenderer {
}
class _WolfGlslRendererState extends BaseWolfRendererState<WolfGlslRenderer> {
static const int _renderWidth = 640;
static const int _renderHeight = 400;
static const int _renderWidth = 960;
static const int _renderHeight = 600;
final SoftwareRenderer _renderer = SoftwareRenderer();