Graphics acceleration makes browser look extremely laggy

My current issue is that whenever I use graphics acceleration my browser’s animations and video playback like YouTube becomes extremely laggy. I am using version 1.78.97 and on Windows 11 with an RTX 3060, an Intel Core i7-11700f, and 32 GB of ram. Whenever I disable graphics acceleration it stops but it is still an issue nevertheless.