What is an Entity in Bevy? | Easy ECS Explanation for Beginners

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 ม.ค. 2025

ความคิดเห็น • 3

  • @darrennew8211
    @darrennew8211 4 หลายเดือนก่อน

    You should explain why the struct layout is different depending on endian-ness. I see no obvious reason for that, as it wouldn't seem to make something like files endian-neutral.

    • @PhaestusFox
      @PhaestusFox  4 หลายเดือนก่อน

      It allows the from bits function to use a u64, the comment above the struct in the source code said it allows the compiler to make more optimised outputs, I don't think it is important to the user just mentioned it to show how much effort bevy puts in to make its code fast

    • @darrennew8211
      @darrennew8211 4 หลายเดือนก่อน

      @@PhaestusFox Huh. OK. I guess if they're casting u32+u32 to an address/pointer or something, that could make sense. Thanks!