Remix.run Logo
semiquaver 14 hours ago

Why does it take 20 seconds to composite a string onto a shirt? Are you using generative AI for something that can be done in milliseconds with traditional techniques?

arjie 13 hours ago | parent | next [-]

It cannot be that, surely since the page prior to the CTA actually shows the shirt with the string composited. So is it perhaps doing some live pricing based on a collection of vendors on the backend? Better to show an initial price and then a progress bar that moves up as the vendors return prices I think. Either way, I reflexively almost clicked away as soon as the 20 s started.

foxpress 13 hours ago | parent [-]

Damn, ok. Good feedback. I heard that from someone else, too. Our attention spans are fried, lol. Can't wait 20 seconds for a shirt preview! It's true though. So the first "preview" is just rendering text on top of a blank shirt mockup, and the the second one (after you click and go to /preview) actually sends the text to the Printful API to get a render of how the shirt will actually appear. That's the delay, waiting for the final image to come back from Printful.

foxpress 13 hours ago | parent | prev [-]

that's the Printful API. Once a phrase has been generated it's cached so it's instant next time. Do you have any suggestions on how to make it faster?

foxpress 13 hours ago | parent [-]

it's often faster than that, that's just the longest it ever takes so I set the countdown timer to 20 seconds. if you can think of a better way to present that I'd love to hear it.