Strange BufferStrategy issue - Game runs fast only on Intel GPUs

后端 未结 3 1891
迷失自我
迷失自我 2021-02-05 04:10

I ran into a very strange problem, I tried searching for an answer for days and days. My game just got a new particle system, but was too slow to be playable. Unfortunately, Buf

3条回答
  •  时光说笑
    2021-02-05 04:49

    When you send things to the GPU, the GPU reads the info from the GDRAM. If you read the data into the memory by calling getDrawGraphics then the memory is probably read from graphics card back into the RAM. The CPU can only access the RAM (DRAM), GPUs can only access the GDRAM. With on-board GPUs this is however different, since they don't come with their own RAM, they use a part of the regular RAM.

    To return cause your code to run quickly, determine which hardware you have, then accordingly call the appropriate method (the one before your code change or the one after).

提交回复
热议问题