Hello everyone. It’s time for my weekly report.
::My Projects::
-
LeetCode 🖥️ 1 hour
- Completed two tasks and reached task number 130 in the sequence.
-
Drawing 🖼️ 7 hours
- Started working on a large digital drawing. I need to continue this week.
::Stable Diffusion Optimizations on Windows::
I’m going to talk about what optimizations I use for the best performance of the Stable Diffusion image generator on Windows 11. The most important thing for an image generator is video memory (VRAM). Here’s the catch: many programs on Windows 11 gobble up VRAM by the bucketful 🥵. Yet, no one can really answer the question “why?” Searching the internet will show plenty of complaints about high VRAM usage, but you won’t find a clear explanation—and trying to contact developers directly yields nothing; no one wants to deal with video memory issues. To see which programs are consuming VRAM, you need to enable the “Dedicated GPU Memory” column in the Task Manager. By default, this column is hidden. Here is the list of settings:
-
Add command-line arguments for ComfyUI:
- --use-split-cross-attention –novram
-
Turn off Hardware Acceleration for these programs:
- Browser
- VS Code
- Windows Terminal
- Steam
-
Flux and SD 3.5 models:
- Download the fp8 versions and ignore the fp16 versions.
For the browser, a few more “fine-tuning” settings are needed: first, disable Smooth Scrolling, as without HW acceleration, scrolling will be terribly laggy on many pages. Secondly, you need to install a separate browser clone for watching videos and use this second browser only for watching video with HW enabled, and nothing else. You need a completely separate installation, not just a “profile,” because all profiles share the same set of system settings, including hardware acceleration.
As a result, you can work with any models without stutters or lags on a graphics card with 16 GB of VRAM.