Awesome Pro-tip. Works in Pattaya and probably every other immigration office.
When you go to immigration and get your queue ticket, there is a QR code on that ticket. If you scan that code and follow the instructions, you will download an app. That app tells you your place in the queue.
You no longer need to wait at immigration until your number is called. In my case, my wait was about 90 minutes, I was free to go to breakfast, massage, beach, whatever.
That application also lets you make reservations for immigration but I couldn't get that part to work. Nothing is perfect.
Thank You Immigration for being pretty awesome sometimes.