Charly Delaroche

Results 16 comments of Charly Delaroche

This helps, thanks. But according to what you are saying, if I use the default raycastside, it should intersect properly when raycasting top down. I found it to not be...

I made it ~10 times faster by not using LCDWriteData but writing my own function that internally send all the data in one call. I also switched to 4BPP instead...

I made a quick test yesterday. I'm trying to make it even faster by extracting the picture directly into a 4bpp texture. I'm only planning on doing full screen updates....

https://github.com/waveshare/IT8951/pull/3 It's a work in progress. But you can try like this: ``` make sudo ./IT8951 path_to_image.bmp ```

@JorgosCoenen 4BPP is the maximum these screens can do anyway. Right now it's decoding the BMP in 8bpp and I then translate it to 4bpp. It would be much faster...

Could you try to replace this line: ``` stLdImgInfo.usEndianType = IT8951_LDIMG_B_ENDIAN; ``` by ``` stLdImgInfo.usEndianType = IT8951_LDIMG_L_ENDIAN; ```

I'm using the 10.3" one. Odd number of pixels (y axis) might be the problem with your screen. Without access to the hardware it'll be hard for me to fix...

A good chunk of the time goes into turning on the screen, and decoding the bmp image. Both of them could be reduced. Pre-uploading image you want might help too....

the library doesn't support that. Be carefull, don't leave it on too long, you might reduce the lifespan of your screen/controller