Under “Renderer”, type in 1080, GTX, or NVIDIA. What do you see? This doesn’t prove that this GPU can’t support this extension, but it does say that there are no OpenGL driver reports in the database that show it supporting it.
Unfortunately, there isn’t much (if any) native support for ASTC on desktop GPUs at all. I wish there were. This would make it easier to deploy assets across both mobile and desktop GPUs without having to republish them.
Another possible explanation is that your app is running on top of an OpenGL ES emulator library (such as PVRVFrame, ANGLE, Mesa3D, etc.) which is dynamically mapping OpenGL ES calls (like references to ASTC compressed textures and data) to native OpenGL or Direct3D calls exposed in the native (GTX 1080Ti native) graphics libraries and driver. In this emulation layer it’s dynamically decompressing the texture (probably on the CPU) and either uploading it to the GPU in an uncompressed format, or dynamically recompressing it in a GPU texture compression format natively supported by the GPU and uploading that (though my bets are on the former). I’ve seen this slowdown you’re talking about before running on PVRVFrame+NVIDIA desktop GPU and uploading PVRTC (a vendor- and mobile-GPU-specific compressed texture format). Long story short: profiling your mobile app when running on desktop on top of one of these emulation layers is fraught with problems. Not the least of which is the GPU architecture is totally different, and things that run efficiently on desktop can perform horribly on a mobile GPU (or vice versa, in the case I suspect you’re looking at now).
oh… thanks. you reduced my pointless attempts.
than do you know ‘supported’ compressed texture format in Nvidia 1080Ti or 2080Ti?
or another way to fast upload texture?
i think uncompressed texture is so slow. what can i do?
i see that site, open ‘Nvidia GTX 1080 ti’ page. https://opengl.gpuinfo.org/displayreport.php?id=4144#tabs-3
i see ‘extension’ not include astc format, but ‘compressed format’ include it.
i think extension is hardware support, ‘compressed format’ is software support(can render, not fast). right?
The ones that have been supported for a long time now, the standard desktop compressed formats: S3TC, RGTC, and the slightly newer BPTC. The last two are core OpenGL and have been for quite some time, while the first one has been supported on desktop hardware for decades.
It seems to me that you need to separate texture upload performance from how you load the texture. 300ms for a single image’s upload is pretty steep unless the image is gigantic or something. However, you said “read jpeg file”, and the reading and processing of JPEG is not cheap (relatively speaking). I could definitely see that taking the lion’s share of that 300ms.
So you first need to see if your performance issues are due to the OpenGL side of the process or are due to the time it takes to get the data to the point where you’re going to make an OpenGL call. Because OpenGL can’t fix the latter.
Honestly, I’d forgotten that implementations even specified which compressed formats they work with. I probably forgot about this because those queries are deprecated and therefore shouldn’t be used. I don’t even know why the database queries that stuff.
So yes, use what the extensions/GL versions say, not by what that query says.
S3TC is the main one, and it’s been around forever. This is what folks generally refer to when they say “DXT” texture compresssion. LATC and RGTC IIRC are just flavors of DXT5’s alpha channel handling used for 1- and 2- channel textures. Also old and been around forever. VTC IIRC is for volumetric (3D) texture compression. BPTC was added later (7 years ago), so many GPUs out there will support this as well.
But don’t trust me. Grab visualinfo, glewinfo, the OpenGL Extensions Viewer I linked to above, or whatever, and check the extensions exposed by your driver.
For details on one, check it out in the OpenGL Extension Registry, the wiki pages Alfonse linked to, or one of the many, many pages and presentations on the net describing these.
To verify internal format support on a particular GPU + driver, see the bottom of this post: