Where to start
Keep the original value, typically Auto. NVIDIA describes Threaded Optimization as a way for applications to use multiple CPUs. The description gives no specific CS2 frame rate gain or guarantee across graphics APIs.
Where to find it
In NVIDIA Control Panel, go to Manage 3D Settings → Program Settings and select CS2. If the option is available, note its current value and change it in the game's profile. If it is absent, leave the profile as it is.
How to compare settings
Repeat the same scene after restarting the game. Keep the graphics API, resolution and FPS cap fixed. Check frame times and whether hitches recur over several passes. If the difference does not repeat, restore the original profile setting.