There are many players that will only go to a gym to get a workout. They need to be around others, suffering just like them. They need a given time to show up and a regular schedule.
I was a member of a gym for 15 years. One day I got knocked off my bike by a car. It fractured my ankle in 3 places. I was forced to go to rehab. After a short period of time I realized that the rehab was a rip-off. Once I got the instruction, I bought all the accessories, small weights, stretch bands, pull up bar, etc. and started on my own. Remember, I got all my instruction from a professional. Then I went to my gym and got instruction from an excellent trainer. He taught me how to work out at home in a responsible way and I never went back to the gym, with an added bonus of not having to pay for a gym membership.
Now, I try to workout in one way or another every day. It might be weight lifting with small to medium hand weights, walk my dog, stretching, biking, hiking, etc. My phone keeps track of my steps.
I found that at the gym I lost a lot of workout time being social, plus the loss of time traveling to and from the gym. If that's what motivates you and you have the time you should continue going to the gym. I get plenty of socialization through my job. I am very self motivated. No one has to remind me to workout. If you are not self-motivated, you should go to a gym.
If you are considering giving up your membership, develop a routine with variations to keep it interesting and a regimen that fits your schedule. Keep your workout equipment where it is easy to access and look forward to working out to your favorite music or watching TV. Keeping it short and simple will keep you on track. Think in the long term. Think about the money you are saving!
If you are not already working out, you should be. Start your New Years resolution now.
Happy New Year!
Good luck on the courts!