Are you trying to connect the computer (tower system itself) to the TV? You may need a specific cord that converts HDMI to another. Such as a “HDMI to DVI adapter”. Because every computer is not as fully compatible to devices like a TV. Your laptop worked because it’s HDMI to HDMI compatible.
Disclaimer: TAKE THIS ALL WITH A GRAIN OF SALT, IM JUST AN IT STUDENT.
I had this issue when my V-sync was activated during warframe. Maybe check that