Hot compresses did not cause you to have floaters. In fact, it is one of the best treatments of Meibomian Gland Dysfunction. Heating the lids will increase oil production and melt the oil that has solidified in the glands. Apply heat on the eyelids for two minutes in order to warm the oil, resulting for it to flow more freely, and helps soften lash debris. Other treatments you can try are massage (roll the finger upward on the lower lid while looking up, then roll the finger downward on the upper lid while looking down), lid scrubs and flax seed oil on your diet.
But if you are experiencing another different eye problems, you can ask your eye doctor for appropriate care.