Uprgrade or new pc i5 10600k rtx 3060

I have i5 10600k and rtx 3060 (i know) and i am not getting enough/stable fps for my games. I mostly play cs2 and lol, but would also like to play more demaniding games. I know my pc isnt optimal and staring to be little old. So i was wondering should i invest in better cpu, motherboard and ram or should i "suffer" little longer :) and buy new pc after some time. If i end up buying new pc it will probably be prebuilt.