kc_retro Posted August 7, 2020 Share Posted August 7, 2020 Hi, I'm new here. I've been using Leadwerks 4.6 Standard for around 4 days now. So far it has mostly gone smooth and I love how easy it is to pick up. My map uses the Sewers assets so it is fairly reliant on spotlights, point lights etc. I added a wall light that had a lens flare effect attached to it. This looked great from the editor. When I ran the game standalone it was flickering. I have done a few hours of experimentation trying to track down the cause. I don't think it is anything to do with shaders. I can switch the lensflare diffuse.shader off from within lensflare.mat and it just results in a flickering square. It is nothing to do with windowed/fullscreen as I tested the standalone game in both modes, same problem. The main question I have is why would lensflare work fine when I run the map from within the editor and not work when I run it from the standalone executable. I created the project from the FPS template. Any question / help would be greatly appreciated. Thanks. Quote Link to comment Share on other sites More sharing options...
Yue Posted August 8, 2020 Share Posted August 8, 2020 GPU AMD? Quote Link to comment Share on other sites More sharing options...
kc_retro Posted August 10, 2020 Author Share Posted August 10, 2020 Hi, Thanks for getting back. I actually managed to replicate on AMD and Nvidia. I'm almost certain it is a problem with vsync. The reason it wasn't happening in the editor was I didn't have vsync enabled but did on the standalone. It's not a showstopper for me at the moment. It is one of my favorite effects and I can work around by using frame rate limiting for 60fps in the Nvidia driver rather than vsync which fixes the problem for the standalone app. My Radeon Vega driver doesn't have that option unfortunately. Quote Link to comment Share on other sites More sharing options...
reepblue Posted August 11, 2020 Share Posted August 11, 2020 I personally just disable VSync setting context->Sync(false). My apps always felt a lot better overall. Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! 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.