9front - general discussion about 9front
 help / color / mirror / Atom feed
From: sirjofri <sirjofri+ml-9front@sirjofri.de>
To: 9front@9front.org
Subject: Re: [9front] [patchset] libgeometry revamp
Date: Sun, 29 Jan 2023 23:48:41 +0100 (GMT+01:00)	[thread overview]
Message-ID: <683f5e71-93d1-4359-8423-08df9be833a8@sirjofri.de> (raw)
In-Reply-To: <21CA2819A163A81633EED939A1C2EC6D@felloff.net>

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

  parent reply	other threads:[~2023-01-29 22:52 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-29 18:47 rgl
2023-01-29 20:49 ` cinap_lenrek
2023-01-29 22:46   ` rgl
2023-01-30 11:17     ` Anthony Martin
2023-01-30 16:49       ` rgl
2023-01-29 22:48   ` sirjofri [this message]
2023-01-30  1:25 ` william

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=683f5e71-93d1-4359-8423-08df9be833a8@sirjofri.de \
    --to=sirjofri+ml-9front@sirjofri.de \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).