set AutoSwapBuffer to 0 and SwapInterval to 1

Hello, to control the blinking frequency of an object I need to set AutoSwapBuffer to 0 and SwapInterval to 1
I conducted several searches on the internet without finding anything
Can you give me a link or the required code?