It's weird, but I think I always knew. So we didn't have sex Ed in school (I lived in a very conservative country). My parents also didn't have "the talk" with me ever. This is why I got to know about what sex was somewhere around the age of 11-12.
Now, I was masturbating n stuff WAAAAAAAY before this. And I knew what fantasies I had when masturbating lmao. They very clearly were boys from school.
Anyway, so after I got to know what sex actually meant (kinda), I quickly discovered porn, when I tried looking for a sex demonstration or something (I initially thought that u had to go to the hospital to perform this "sex procedure" in front of the doctors to make a baby or whatever). Anyway, so I discovered straight porn. At the same time, people at school had started using the slur, "gay".
I knew it meant man+man instead of woman+man. I looked it up, and immediately understood that I was indeed gay.
Now ofc, acceptance took almost my entire teenage life. I hated myself for being who I was and so on. Wasn't very nice.