grinseengel Posted January 8, 2019 Share Posted January 8, 2019 Ok, I have the possibility to get a 4k resolution. I have a Gforce 1070. In the script I find the following code: "local gfxmode = System: GetGraphicsMode (System: CountGraphicsModes () - 1) if System: GetProperty ("devmode") == "1" then gfxmode.x = math.min (1280, gfxmode.x) gfxmode.y = Math: Round (gfxmode.x * 9/16) windowstyle = Window.Titlebar " How can I change the resolution? Greetings Andreas Quote Link to comment Share on other sites More sharing options...
Josh Posted January 8, 2019 Share Posted January 8, 2019 Here is the code that creates the window: local gfxmode = System:GetGraphicsMode(System:CountGraphicsModes()-1) if System:GetProperty("devmode")=="1" then gfxmode.x = math.min(1280,gfxmode.x) gfxmode.y = Math:Round(gfxmode.x * 9 / 16) windowstyle = Window.Titlebar else gfxmode.x = System:GetProperty("screenwidth",gfxmode.x) gfxmode.y = System:GetProperty("screenheight",gfxmode.y) windowstyle = Window.Fullscreen end window = Window:Create(title,0,0,gfxmode.x,gfxmode.y,windowstyle) It is set up so that when launched from the editor, it creates a smaller window. If launched alone, it creates a fullscreen window at maximum resolution. This is because you often need to go back and forth with the editor when you are working on a project. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
grinseengel Posted January 8, 2019 Author Share Posted January 8, 2019 Thank you for your prompt reply. However, this is exactly the script which is included in the tutorial level. My problem is that I can set in Editor mode and after the publish in the menu of the screen resolution max only 1280x 720 pixels. I can set a small resolution but none about it. Since my graphics card and my current games under 4k run I do not understand. Is it possibly the version of Lead Works? Quote Link to comment Share on other sites More sharing options...
Josh Posted January 8, 2019 Share Posted January 8, 2019 Leadwerks 4 does not support high DPI resolutions because it would make the GUI tiny. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
grinseengel Posted January 8, 2019 Author Share Posted January 8, 2019 Ok, then is the max resolution at 1280x720 pixels? Or is there a way with Leaswerks also projects with higher resolution to create? Quote Link to comment Share on other sites More sharing options...
Josh Posted January 8, 2019 Share Posted January 8, 2019 It's dependent on your monitor resolution and DPI. What is your monitor resolution, and is it a high DPI monitor? Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
grinseengel Posted January 8, 2019 Author Share Posted January 8, 2019 I use a 4k TV with a resolution of 3840x 2160 pixels. Quote Link to comment Share on other sites More sharing options...
Josh Posted January 8, 2019 Share Posted January 8, 2019 Your max resolution will be 1920x1080. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
grinseengel Posted January 8, 2019 Author Share Posted January 8, 2019 Quote It is set up so that when launched from the editor, it creates a smaller window. If launched alone, it creates a fullscreen window at maximum resolution. This is because you often need to go back and forth with the editor when you are working on a project. The resolution in the editor max 1280x 720 pixels is I understood. But I have even if the project is published only as a max. Resolution 1280x720 pixels. A max resolution of 1920x1080 pixels I can not select as a standalone game. What am I doing wrong? Quote Link to comment Share on other sites More sharing options...
Josh Posted January 8, 2019 Share Posted January 8, 2019 Run your game without the editor. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
grinseengel Posted January 8, 2019 Author Share Posted January 8, 2019 Ok, that's what I did. 1) Project loaded 2) Publish project 3) Leadwerk finished 4) Project started from hard disk 5) max. Resolution = 1280x720 pixels in full screen 6) a higher resolution is not possible Quote Link to comment Share on other sites More sharing options...
carlb Posted January 8, 2019 Share Posted January 8, 2019 are you on the latest beta. as josh did fix a screen bug in that 1 Quote Asus ROG STRIX B350-F GAMMING AMD Ryzen 7 1700x 32 gb ddr4 15 TB raid 5 HD Nvidia EVGA 1060GTX Win10 64bit Link to comment Share on other sites More sharing options...
grinseengel Posted January 9, 2019 Author Share Posted January 9, 2019 I have the 4.5 standard edition.. Quote Link to comment Share on other sites More sharing options...
Josh Posted January 9, 2019 Share Posted January 9, 2019 You can install the 4.6 beta, update your project, and see if that fixes the issue. If not I suggest uploading an example here so we can all try it. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
grinseengel Posted January 9, 2019 Author Share Posted January 9, 2019 Ok, to load the beta steam asks me a betacode. I can not download the 4.6 beta therefore. Where can I get that? Quote Link to comment Share on other sites More sharing options...
carlb Posted January 9, 2019 Share Posted January 9, 2019 just select beta-latest build for testing option and dont worry about code it not needed it will start loading the beta after you come out of properties Quote Asus ROG STRIX B350-F GAMMING AMD Ryzen 7 1700x 32 gb ddr4 15 TB raid 5 HD Nvidia EVGA 1060GTX Win10 64bit Link to comment Share on other sites More sharing options...
grinseengel Posted January 9, 2019 Author Share Posted January 9, 2019 I now have the version 4.6 installed. However, my problem has not changed. I can not get beyond a resolution of 1280x720 pixels. Can it be because I do not use a monitor but a TV device? Quote Link to comment Share on other sites More sharing options...
Josh Posted January 9, 2019 Share Posted January 9, 2019 I doubt it. What is the display scaling factor in Windows display properties? Please upload an example we can run. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
grinseengel Posted January 9, 2019 Author Share Posted January 9, 2019 The scales in Windows, I've tried all three. 1) aspect ratio 2) Full screen 3) no scaling All settings have not changed the appearance. I have uploaded a start level. test1.rar Quote Link to comment Share on other sites More sharing options...
Solution Admin Posted January 9, 2019 Solution Share Posted January 9, 2019 This is the setting I am asking about: 1 Quote Link to comment Share on other sites More sharing options...
grinseengel Posted January 9, 2019 Author Share Posted January 9, 2019 Thanks alot. It works now..... A question about Leadwerk 5. Is the version already available and is it supported 4k? Quote Link to comment Share on other sites More sharing options...
Admin Posted January 9, 2019 Share Posted January 9, 2019 Yes, Leadwerks 5 will support high DPI monitors. The GUI will scale to fit the DPI. Quote Link to comment Share on other sites More sharing options...
grinseengel Posted January 9, 2019 Author Share Posted January 9, 2019 Where can I buy the version and what does it cost? Quote Link to comment Share on other sites More sharing options...
Josh Posted January 9, 2019 Share Posted January 9, 2019 It does not yet exist. In development. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Slimwaffle Posted February 4, 2019 Share Posted February 4, 2019 I did notice something. Josh mentioned high DPI would make things small. There is a way around this and it comes down to how the individual leadwerks user writes their code. I will explain what I mean. Instead of using pixel sizes you want to use divisions of the screen size. For example instead of saying context:DrawImage(self.label, bx + (bsx / 2 ) - (150), by - 50, 300, 50) you want it to look like this; x = (context:GetWidth() - context:GetWidth()) y = (context:GetHeight() - context:GetHeight()) sx = (context:GetWidth() /10) sy = (context:GetHeight() /20) context:DrawImage(self.label, x, y, sx, sy) I understand in these two examples the are different sizes and co-ordinates. But it is to just illustrate what I am referring to. Because if you make all your sizes based of screen size the same way you would with co-ordinates for printing, Everything you print to screen will always take up the same amount of screen size regardless of resolution. You can't expect everything to resize if you don't first tell everything to resize. So with this in mind I would like to see support for HIGH DPI. Because its really badly needed. And resizing is something that is easy for the programmer to implement into their project. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.