Game runs fine in unity but lags terribly in VS build
i'm not sure what exactly i am doing wrong here, but i basically have a simple 2d platformer with plain sprites and very few things going on at once (basically a player and maybe 1 or 2 enemies), and when i build and run it in unity, it's fine. if i build and play it as a .exe, its fine. When i build and run in debug mode in visual studio, it's fine. But when i try to build and run it in master mode in visual studio it lags, bad, to the point where it's almost impossible to navigate the starting menus, let alone play the game. and i've been trying to submit it to the windows app store and thanks to this crippling lag it keeps failing the compliance checks. how can i go about cleaning up this lag so i can continue with releasing it? i've thought of trying to cut down on how many co routines or updates are happening at once but i'm already running on bare minimum for anything even remotely interesting of a game.
Your answer
![](https://koobas.hobune.stream/wayback/20220612084458im_/https://answers.unity.com/themes/thub/images/avi.jpg)