If you are flying either C or coach if you're *G - check-in two hours before scheduled flight time is more than enough. Traffic probably will not be that bad and once you get on the motorway you'll fly to the airport (almost true with some BKK taxi drivers!!).
With TG business class there is a dedicated immigration line.