Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. My kid just crashed a Steam game he's playing

My kid just crashed a Steam game he's playing

Scheduled Pinned Locked Moved The Lounge
databasecomgame-devtoolshelp
16 Posts 10 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    PIEBALDconsult
    wrote on last edited by
    #1

    He says it crashes a lot, but he hadn't seen this one before. Are they really using signed 16-bit addresses? :-D Image of Steam index out of range error[^]

    L OriginalGriffO S A L 8 Replies Last reply
    0
    • P PIEBALDconsult

      He says it crashes a lot, but he hadn't seen this one before. Are they really using signed 16-bit addresses? :-D Image of Steam index out of range error[^]

      L Offline
      L Offline
      ledtech3
      wrote on last edited by
      #2

      I guess you could say it caught a buffer Overrun issue ?

      1 Reply Last reply
      0
      • P PIEBALDconsult

        He says it crashes a lot, but he hadn't seen this one before. Are they really using signed 16-bit addresses? :-D Image of Steam index out of range error[^]

        OriginalGriffO Offline
        OriginalGriffO Offline
        OriginalGriff
        wrote on last edited by
        #3

        Can't you even obey simple instructions? You are supposed to tell a programmer, not 12,821,673 >32768 of them! :laugh:

        Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

        "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
        "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

        P 1 Reply Last reply
        0
        • P PIEBALDconsult

          He says it crashes a lot, but he hadn't seen this one before. Are they really using signed 16-bit addresses? :-D Image of Steam index out of range error[^]

          S Offline
          S Offline
          Smart K8
          wrote on last edited by
          #4

          As a programmer, I'm very intrigued. So you're saying that 103956 is more than 32768? Very interesting. Never knew that. Thanks. :doh:

          Z 1 Reply Last reply
          0
          • P PIEBALDconsult

            He says it crashes a lot, but he hadn't seen this one before. Are they really using signed 16-bit addresses? :-D Image of Steam index out of range error[^]

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            PIEBALDconsult wrote:

            Are they really using signed 16-bit addresses? :-D

            No. The index buffer defines the triangle faces of a 3D object. For some reason the vertex buffer (which is indexed by the index buffer) may contain no more than 32000 vertices. For most uses this may be enough. Rendering too many objects with 32000 vertices and a corresponding number of faces is a slow affair. On the other hand, this decreases the size of the buffers, so that you can load more 3D objects at the same time. Video memory has always been precious.

            The language is JavaScript. that of Mordor, which I will not utter here
            This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a fucking golf cart.
            "I don't know, extraterrestrial?" "You mean like from space?" "No, from Canada." If software development were a circus, we would all be the clowns.

            A 1 Reply Last reply
            0
            • P PIEBALDconsult

              He says it crashes a lot, but he hadn't seen this one before. Are they really using signed 16-bit addresses? :-D Image of Steam index out of range error[^]

              A Offline
              A Offline
              Amarnath S
              wrote on last edited by
              #6

              Did the steam engine just derail?

              1 Reply Last reply
              0
              • L Lost User

                PIEBALDconsult wrote:

                Are they really using signed 16-bit addresses? :-D

                No. The index buffer defines the triangle faces of a 3D object. For some reason the vertex buffer (which is indexed by the index buffer) may contain no more than 32000 vertices. For most uses this may be enough. Rendering too many objects with 32000 vertices and a corresponding number of faces is a slow affair. On the other hand, this decreases the size of the buffers, so that you can load more 3D objects at the same time. Video memory has always been precious.

                The language is JavaScript. that of Mordor, which I will not utter here
                This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a fucking golf cart.
                "I don't know, extraterrestrial?" "You mean like from space?" "No, from Canada." If software development were a circus, we would all be the clowns.

                A Offline
                A Offline
                Anthony Mushrow
                wrote on last edited by
                #7

                Vertex count is limited to 32 bits (per draw call / buffer). If you're using 16-bit index buffers then you can only reference up to vertex 65535, but you can still have up to 4294967295 indices in your buffer, though I've never actually tried. If there's a 32768 limit on buffer sizes it's in their game code, it's nothing to do with the graphics card (except having enough video memory to store everything you need).

                L 1 Reply Last reply
                0
                • A Anthony Mushrow

                  Vertex count is limited to 32 bits (per draw call / buffer). If you're using 16-bit index buffers then you can only reference up to vertex 65535, but you can still have up to 4294967295 indices in your buffer, though I've never actually tried. If there's a 32768 limit on buffer sizes it's in their game code, it's nothing to do with the graphics card (except having enough video memory to store everything you need).

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #8

                  Anthony Mushrow wrote:

                  If you're using 16-bit index buffers then you can only reference up to vertex 65535, but you can still have up to 4294967295 indices in your buffer, though I've never actually tried.

                  I know that, but the error message that was shown mentioned 32768 as max. index value, so we must assume that they used a 16 bit signed type in the index buffer. And in the end it's irrelevant how many vertices you have in the vertex buffer if you can't access them.

                  The language is JavaScript. that of Mordor, which I will not utter here
                  This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a fucking golf cart.
                  "I don't know, extraterrestrial?" "You mean like from space?" "No, from Canada." If software development were a circus, we would all be the clowns.

                  A 1 Reply Last reply
                  0
                  • S Smart K8

                    As a programmer, I'm very intrigued. So you're saying that 103956 is more than 32768? Very interesting. Never knew that. Thanks. :doh:

                    Z Offline
                    Z Offline
                    ZurdoDev
                    wrote on last edited by
                    #9

                    Smart K8 wrote:

                    Very interesting. Never knew that.

                    It's a trending way to handle error messages. When your system crashes you popup random facts so that at least the user is gaining knowledge while using your app. ;)

                    There are two kinds of people in the world: those who can extrapolate from incomplete data. There are only 10 types of people in the world, those who understand binary and those who don't.

                    S 1 Reply Last reply
                    0
                    • Z ZurdoDev

                      Smart K8 wrote:

                      Very interesting. Never knew that.

                      It's a trending way to handle error messages. When your system crashes you popup random facts so that at least the user is gaining knowledge while using your app. ;)

                      There are two kinds of people in the world: those who can extrapolate from incomplete data. There are only 10 types of people in the world, those who understand binary and those who don't.

                      S Offline
                      S Offline
                      Smart K8
                      wrote on last edited by
                      #10

                      I love this new trend. I'm amazed.

                      1 Reply Last reply
                      0
                      • P PIEBALDconsult

                        He says it crashes a lot, but he hadn't seen this one before. Are they really using signed 16-bit addresses? :-D Image of Steam index out of range error[^]

                        Mike HankeyM Offline
                        Mike HankeyM Offline
                        Mike Hankey
                        wrote on last edited by
                        #11

                        Pong?

                        Someone's therapist knows all about you!

                        1 Reply Last reply
                        0
                        • P PIEBALDconsult

                          He says it crashes a lot, but he hadn't seen this one before. Are they really using signed 16-bit addresses? :-D Image of Steam index out of range error[^]

                          S Offline
                          S Offline
                          Shao Voon Wong
                          wrote on last edited by
                          #12

                          It is common that indices is 16bit. I guess your kid just load a complex 3D model contains many vertices.

                          1 Reply Last reply
                          0
                          • OriginalGriffO OriginalGriff

                            Can't you even obey simple instructions? You are supposed to tell a programmer, not 12,821,673 >32768 of them! :laugh:

                            Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

                            P Offline
                            P Offline
                            PIEBALDconsult
                            wrote on last edited by
                            #13

                            He did.

                            1 Reply Last reply
                            0
                            • P PIEBALDconsult

                              He says it crashes a lot, but he hadn't seen this one before. Are they really using signed 16-bit addresses? :-D Image of Steam index out of range error[^]

                              S Offline
                              S Offline
                              Shao Voon Wong
                              wrote on last edited by
                              #14

                              Purpose of using indices is to save GPU memory. A vertex contains the very least x, y, z coordinates. It can also have additional info like RGBA color or other texture coordinates(u and v). If it just has (x, y, z), its size is 3 * sizeof(float). A vertex often appears more than once in nearby triangles. If possible, we want to represent this same vertex with an index number, instead of duplicating same information. If indices is 32 bit, we can end up using more memory than saving it.

                              1 Reply Last reply
                              0
                              • L Lost User

                                Anthony Mushrow wrote:

                                If you're using 16-bit index buffers then you can only reference up to vertex 65535, but you can still have up to 4294967295 indices in your buffer, though I've never actually tried.

                                I know that, but the error message that was shown mentioned 32768 as max. index value, so we must assume that they used a 16 bit signed type in the index buffer. And in the end it's irrelevant how many vertices you have in the vertex buffer if you can't access them.

                                The language is JavaScript. that of Mordor, which I will not utter here
                                This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a fucking golf cart.
                                "I don't know, extraterrestrial?" "You mean like from space?" "No, from Canada." If software development were a circus, we would all be the clowns.

                                A Offline
                                A Offline
                                Anthony Mushrow
                                wrote on last edited by
                                #15

                                The message actually says that there are too many indices for the index buffer, not that a specific index is too high. I've never seen anybody use a signed type in an index buffer since it's just a waste, I'm not even sure if you can. You could use a signed type in your own code, but it'll be interpreted as unsigned on the GPU.

                                L 1 Reply Last reply
                                0
                                • A Anthony Mushrow

                                  The message actually says that there are too many indices for the index buffer, not that a specific index is too high. I've never seen anybody use a signed type in an index buffer since it's just a waste, I'm not even sure if you can. You could use a signed type in your own code, but it'll be interpreted as unsigned on the GPU.

                                  L Offline
                                  L Offline
                                  Lost User
                                  wrote on last edited by
                                  #16

                                  Not to mention awkward. Did you see the video I posted here[^] two days ago. I must have gotten something right. :-)

                                  The language is JavaScript. that of Mordor, which I will not utter here
                                  This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a fucking golf cart.
                                  "I don't know, extraterrestrial?" "You mean like from space?" "No, from Canada." If software development were a circus, we would all be the clowns.

                                  1 Reply Last reply
                                  0
                                  Reply
                                  • Reply as topic
                                  Log in to reply
                                  • Oldest to Newest
                                  • Newest to Oldest
                                  • Most Votes


                                  • Login

                                  • Don't have an account? Register

                                  • Login or register to search.
                                  • First post
                                    Last post
                                  0
                                  • Categories
                                  • Recent
                                  • Tags
                                  • Popular
                                  • World
                                  • Users
                                  • Groups