bvschaik / julius

An open source re-implementation of Caesar III
GNU Affero General Public License v3.0
2.79k stars 311 forks source link

Texture filter when rising display scale above 100% #727

Closed lordrius closed 5 months ago

lordrius commented 5 months ago

Hi!

I was testing Julius and it's wonderful, thanks! I have a question, when rising the display scale above 100% I have the feeling that it applies some kind of texture filtering such us bilinear or bicubic, can it be? I attach a couple of screenshots...

Original c3.exe at 1024x768 original 1024x768

Julius 150% display scale julius scaled 150%

Thank you :)

bvschaik commented 5 months ago

You're right, linear scaling is applied on anything other than multiples of 100: source.

lordrius commented 5 months ago

Oh, I see... And it would be possible to add an option to toggle filtering?

bvschaik commented 5 months ago

You can already override it by setting the SDL_HINT_RENDER_SCALE_QUALITY environment variable.

We will not make it an option since the nearest neighbour setting simply does not look good.

lordrius commented 5 months ago

All right, thank you very much!