Is it possible for Looking Glass to implement some features of Lossless Scaling, or to provide compatibility with it?

Since version 2.6, Lossless Scaling switched its frame capture API from WGC to DXGI. This change seems to have caused issues because Looking Glass also uses DXGI for frame capture, leading to a conflict that prevents Lossless Scaling from functioning properly with DXGI.

Although reverting Lossless Scaling’s frame capture API back to the older WGC allows it to work, this approach appears to increase overhead.

It seems that by adding certain features to the host side of Looking Glass—specifically, enabling low-resolution windows of older games to be upscaled to high-definition using FSR through hotkeys and process detection—one could significantly leverage Looking Glass’s existing FSR capabilities.

FSR can notably enhance the visual quality of older games, making this integration highly beneficial.

I have a monitor i got in 2014 that has internal linear upscaling to 1080p when i feed it a lower resolution. Im sure nowadays displays with upscaling to fit are very cheap and availible.

Since version 2.6 of what? Lossless Scaling is a technique, if there is an application by that name I am not aware of it.

This change seems to have caused issues because Looking Glass also uses DXGI for frame capture, leading to a conflict that prevents Lossless Scaling from functioning properly with DXGI.

There is nothing we can do about this, if there is an issue with multiple applications using DXGI DesktopDuplication at once, then it’s something that only Microsoft can fix. Really though, there should not be any issue here as multiple capture applications running at once has always been permitted by windows in the past.

While I see the merits of your suggestion regarding process detection, what you’re doing is rare, very few people use LG for this, and the cost of maintaining the extra code to do this is not really worth it for the little benefit it would yield.

I’m not entirely sure, but when used with Looking Glass, I can only get lossless scaling to work in WGC mode.

This really raises a question about the applicability of FSR in games that don’t natively support it. To be honest, FSR is great for increasing the resolution of older games, but it tends to be limited to classic games. The way FSR works in Looking Glass actually makes its functionality more limited compared to Lossless Scaling.

1 Like

This is because when you capture the desktop output, you get it RAW from the GPU, regardless of how many applications are capturing it.

| - Rendered Frame
   \ - DXGI DD Captured Frame
     | - Looking Glass -> Shared Memory -> LG Client
     \ - Lossless Scaling -> Re-display on the guest

It’s impossible for LG to be part of the Lossless Scaling pipeline, nor would you want to as the bandwidth hit here would be huge.

If this were to be done properly, it needs to be done in the LG client.

Edit: Please be aware that “lossless scaling” is not FSR, FSR is up scaling and as such attempting to recover/alter the image to make it appear at a higher resolution then it was.

LG already supports lossless scaling, it has done so since it’s first realease. It’s called “Integer Scaling”.

How so? If the game has been “remastered” and is rendering at 2x pixel size or something, you can enable the LG downscale filter to bring it back down to the original size, then pass it through FSR to properly upscale it.

We have made sure that FSR is usable and useful on all titles.

For example, here is Starcraft 1 (older screenshots when demoing FSR, but you can see the results)

Set SD Graphics Filter to Sharp to disable SC’s own upscaling method.

Find the right value for the downscaler (2.5 in my instance)
image

Before


After

For modern titles, set the Game resolution to something low, and turn on FSR, that’s it. Don’t downscale in the game, ensure the actual game resolution being fed to LG is the original untouched lower resolution.

BF5 @ 1024x768 Without FSR

BF5 @ 1024x768 With FSR

Obviously an extreme example, but you get the point.

4 Likes