rednblackgames/HyperLap2D

[Feature Request] 4K displays...

Closed this issue · 15 comments

ambs commented

First, thank you so much for taking overlap 2D and giving it a new life. I was really sad of it being dead for some time. I usually use it on my classes, and using a old/dead app wasn't very nice.

My current problem is not properly a bug, but a feature request.
Using OverLap, erm, HyperLap2D in a 4K display is very complicated (using Linux Mint, 0.0.5 of HyperLap).
Is there any way to make it... larger?

Thank you

fgnm commented

Hi, thank you so much for interesting in the project!
Indeed on some display could be quite unusable.. I've some ideas on how to adjust viewport scale for high resolutions, let me few days for testing it

fgnm commented

Hey @ambs take a look to latest snapshot here, there's a new setting that allow to change UI viewport density. It may not looks sharp when upscale UI, but at moment this is the best result I can achieve, let me know how it looks.

ambs commented

Hi. Testing on my laptop (also 4K display), running Linux, my X11 goes of the peak using 100% cpu, and system gets unusable.
I have no idea if that is a result of your change, or if this is a specific problem on my laptop.

Tomorrow I will test on the original machine and let you know.
Thanks

fgnm commented

Uhm that's sounds bad, it might be related to recent switch on OpenGL 3.2... Please can you try this other snapshot? It's the latest one before new GL version

ambs commented

With that version I get the 110% CPU for the HyperLap binary (not the X11).
Also, tried to find the option for bigger UI, but without luck.
Thanks

fgnm commented

Sorry if I ask, may you try this other snapshot? 😄 I'd like to identify high CPU reason becasue isn't really normal..

Regarding scale UI option it's here (of course this is available only in the latest snapshot), it's a slider, less density means big UI:
image

ambs commented

Unfortunately I do not have big news. Still high CPU usage. Give me a minute to test the latest "stable" version.

ambs commented

OK, 0.0.5 is not running properly on my laptop (high cpu usage).
For reference, I am running Linux Mint, using nvidia geforce directly on X11.
I am happy to help debugging, f you give more details on how to do that.
Cheers

fgnm commented

Thanks for the info, I usually work on Ubuntu using X11 + Radeon driver without issues.. Since any configuration of vSync and thread sync doesn't work properly on your machine all can I imagine now is a driver issue, that may be related to libGDX itself.. I'll try to find a machine where to reproduce this bug, meanwhile would be very helpful a report from a profiler while running hyperlap.. Have you ever worked with VisualVM?

Also feel free to join Discord server :)

ambs commented

Hi. Didn't notice the Discord server. Will do it as soon as I can.
No, never used VisualVM.
Tried 0.0.5 on my tower, and hyperlap works without cpu issues.

fgnm commented

With VisualVM you should be able to see which part of the code is consuming so much on the laptop CPU.. You may try to use it and see what's going on. I think you'll need to run hyperlap from source. Unfortunately I'm not able to reproduce the issue.

ambs commented

during the weekend will try to understand what might be going on. During the week is hard to get some time...

ambs commented

Was testing running the binary, and see its output. I do not think this is relevant, but I'm sharing anyway:

Loading Proxies...
Loading Views...
HyperLap2D 0.0.5
Linux [5.4.0-67-generic - amd64]
NVIDIA Corporation GeForce GTX 960M/PCIe/SSE2
Screen size 3840 x 2160
GL version 4.6.0 NVIDIA 450.102.04
Shaders version 4.60 NVIDIA
Loading Commands...
Loading Plugins...
Plugins directory: /opt/hyperlap2d/lib/app/plugins
Plugins loaded: 4
Plugins directory: /home/ambs/.hyperlap2d/plugins
Plugins loaded: 0
Plugins directory: /opt/hyperlap2d/bin/plugins
Plugins loaded: 0
Initializing...
[GLProfiler] Error GL_INVALID_ENUM from glClearColor
Content-Type = application/json; charset=utf-8
Content-Disposition = null
Content-Length = 5878
ambs commented

As a sidenode, built from GIT, and the zoom is working :-)

fgnm commented

I close this one, as original topic is fixed ;)