From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 17796 invoked from network); 29 Jan 2023 22:52:11 -0000 Received: from 9front.inri.net (168.235.81.73) by inbox.vuxu.org with ESMTPUTF8; 29 Jan 2023 22:52:11 -0000 Received: from sirjofri.de ([5.45.105.127]) by 9front; Sun Jan 29 17:49:16 -0500 2023 Received: from dummy.faircode.eu ([95.90.217.122]) by sirjofri.de; Sun Jan 29 23:49:12 +0100 2023 Date: Sun, 29 Jan 2023 23:48:41 +0100 (GMT+01:00) From: sirjofri To: 9front@9front.org Message-ID: <683f5e71-93d1-4359-8423-08df9be833a8@sirjofri.de> In-Reply-To: <21CA2819A163A81633EED939A1C2EC6D@felloff.net> References: <21CA2819A163A81633EED939A1C2EC6D@felloff.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Correlation-ID: <683f5e71-93d1-4359-8423-08df9be833a8@sirjofri.de> List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: rich-client-oriented storage Subject: Re: [9front] [patchset] libgeometry revamp Reply-To: 9front@9front.org Precedence: bulk Good evening, as a professional game developer who also specializes in 3d rendering with only experience with GPUs and shaders I have to ask: How do you handle sampling textures via coordinates? I mean, you get the barycentric coordinates, calculate the UV for that pixel, and then sample the pixel from the texture, I guess, but isn't it quite slow on a CPU to read that texture like that, especially considering caching etc.? I mean, obviously you wouldn't draw the pixels directly (each pixel a draw call), but instead generate the image in-memory and draw it completely within one draw call. For me it's kinda hard to learn these things since I don't know what exactly to search for (and again, most of my experience is from shaders), so some hint would be helpful, even if it's just a response like "no, this is the way to do it usually and it's fast enough". sirjofri