Comments (15)
I can get a good vertical integer display by doing it like:
info->geometry.base_height = setting_last_scanline - setting_initial_scanline + 1;
It's dirty and needs a core restart.
I don't know how to code it in a cleaner way and respect the original ratio but if should be possible to change libretro.cpp only.
As a reference, mednafen stand-alone scales the picture like this in integer scale:
232 lines / 237 lines (can't go over last scanline 239)
from beetle-pce-fast-libretro.
There's probably no perfect solution for the width if pixels aren't square:
http://forum.fobby.net/index.php?t=msg&goto=2554&
from beetle-pce-fast-libretro.
The scanline scaling feature of this core is incorrect in terms of Retroarch. Retroarch is supposed to do the scaling, not the cores, and Retroarch probably does a much better job using better scaling algorithms (and configurable) anyway. The change I made works in both dimensions if the user selects the core's maximum scanline option.
The core outputs to a fixed-dimension, worst-case, maximum-size buffer that the TurboGrafx-16 could ever use. The RETRO_ENVIRONMENT_SET_GEOMETRY API tells Retroarch to adjust it's scaling within the user's display area while applying the user's selected Aspect Ratio. By default, this core's aspect ratio ("Core Provided") is always 4:3, which might not be always correct in the first place.
I prefer playing emulators with 1:1 pixel aspect ratio because then I don't have to worry about the scaling algorithm used by the emulator, which is arbitrary. Crispy 1:1 sample-to-pixel looks great.
In other words, there definitely is a perfect solution. The pixels aren't square if the user chooses something other than a 1:1 aspect ratio in Retroarch's configuration. My change perfectly allows Retroarch to scale the width. The core's scanline scaling was broken before and after my change. It's a separate bug.
from beetle-pce-fast-libretro.
That's perfectly OK as long as everything is optional.
The scanline menu was broken before your commit in the sense that it forces a higher resolution inside a smaller frame buffer.
But prior to your commit, at non integer scale, we could use the scanline menu to remove lines and cut the black bars on top and bottom of the screen. That's not working after it.
Also 352 pixels wide games are off centred (as Ninja Spirit).
512 pixels wide mode gives a black screen (TV Sport Basketball "result board" before a match).
from beetle-pce-fast-libretro.
The scanline scaling had and has incorrect scaling and thus artifacts. It was always broken. Sure, it might be broken differently now, but it's "breaking in the right direction." :P The fixed feature would adjust the values sent to RETRO_ENVIRONMENT_SET_GEOMETRY for line hiding.
Some dimensions don't work? Really? Are we sure that the game itself doesn't output an off-centered image or something? I tested the opening cutscenes from Ys Books I & II which use all sorts of crazy resolutions, and that works. If I had time, I'd check this out sooner, but ha.
from beetle-pce-fast-libretro.
Pull Request fixing scaling of line hiding: #40
from beetle-pce-fast-libretro.
This is still broken. I don't know when Retroarch's Online Updater builds a new core, but the reported Pixel Aspect Ratio is incorrect. The pixels are not square.
from beetle-pce-fast-libretro.
What did you notice?
Everything looks good for me here.
from beetle-pce-fast-libretro.
Just boot up Ys Books I + II, or any game, actually. With the Aspect Ratio set to 1:1 (PAR), even the BIOS screen has non-uniform pixels. Since 1:1 (PAR) is incorrect, all other aspect ratios also have core-caused scaling artifacts, too.
from beetle-pce-fast-libretro.
I don't have Ys but tried Ninja Spirit and PC KID 2, I zoomed in in Photoshop, I see no problem.
Are you sure you didn't forget to put integer scale ON or something else?
from beetle-pce-fast-libretro.
Integer scale is definitely on. I've tried this on two Windows computers and one Linux computer. If you can't see the fat and/or squished square pixels in a static image, observe some motion. The shimmering (caused by the scaling artifacts) is horrible. Make sure you're not using any pixel shaders or scanlines or anything.
from beetle-pce-fast-libretro.
I've tried it once again with PC Genjin 2.
I disabled all shader (I was using nearest before), updated the core, set 1:1(PAR) and integer ON.
I don't see any shimmering. I zoom the snapshot I took in Photoshop and 4x4 pixels everywhere (I'm on 1080p).
I'm on windows 7 x64 Nvidia GPU recent nightly from 2 days ago, core inital/last scanlines were on 3-242.
It was working for you before when we fixed it?
from beetle-pce-fast-libretro.
Oh wow, I'm not sure what exactly I was smoking yesterday. It works fine... I forgot that Integer Scaling isn't saved in the Retroarch configuration, I guess? I'm sorry for wasting your time.
YES! Crispy pixels! Finally! (I hadn't tested the big change until this month.)
from beetle-pce-fast-libretro.
Integer Scaling does save to the config
from beetle-pce-fast-libretro.
It was probably me getting confused with the Linux build, because the configuration file has to be changed manually. I was seeing ghosts, and frustration never helps. ;)
from beetle-pce-fast-libretro.
Related Issues (20)
- Versioning scheme HOT 1
- Redump cue + bin set will not load on 3DS HOT 8
- Metal Stoker (Japan) crash HOT 4
- [Nintendo Switch] Pokémon X and Y not playing background music
- Sound issue in Brandish intro
- Wonder Momo Graphic issues HOT 1
- Duckstation core shm_open error 13 HOT 2
- Emscripten builds fail to load assets/unzip content
- Wiiu builds fail to load assets/Overlays HOT 11
- Can't load Luigi's Mansion HOT 1
- RetroArch runs in background after use of the PCSX2 - PlayStation 2 Core HOT 1
- CD Audio cuts out during attract mode in Shadow of The Beast
- cores need updates. HOT 5
- Order Of The Griffon unreadable text
- “MAGICAL FANTASY ADVENTURE - POPFUL MAIL" get stuck through cg scene! HOT 7
- mugen senshi valis audio not sync
- can you add better psx because im having trouble about large mb games HOT 1
- Avenue Pad 3
- No audio Beetle PCE Fast (v1.31.0.0 cc248db) on Sony PSP
- Not start Youkai Douchuuki (Japan).pce HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from beetle-pce-fast-libretro.