3.2" SPI LCD (working and ready for a build)

General GBZ-related chat goes here. Share ideas, tips and tricks, or ask questions that don't fit into the hardware/software help forums.
User avatar
VeteranGamer
Posts: 1738
Joined: Thu Jan 26, 2017 11:12 am
Location: London, UK
Has thanked: 528 times
Been thanked: 909 times

Re: 3.2" SPI LCD (working and ready for a build)

Post by VeteranGamer » Thu Oct 12, 2017 4:01 am

kite wrote:
Thu Oct 12, 2017 3:46 am
That is the FPS being output to the framebuffer, but FBTFT/FBCP reads FROM that framebuffer as fast as it can, so that FPS isn't what you're actually seeing.. you need to know the FPS that FBTFT/FBCP is able to write to the screen which will be a lot less. You will see 60fps on HDMI though and if you put side by side you'll see that they are quite different in terms of FPS
where should i be looking?

a point in the right direction would help....

User avatar
kite
Posts: 972
Joined: Thu May 12, 2016 4:30 am
Location: UK
Has thanked: 246 times
Been thanked: 361 times
Contact:

Re: 3.2" SPI LCD (working and ready for a build)

Post by kite » Thu Oct 12, 2017 4:20 am

I don't know sorry. When launching fbcp and in /var/log/messages it will report the FPS? It wouldn't be too hard to modify the fbcp source to get it to collect an FPS and print to screen once a second
Stock clearance - CLOSED: viewtopic.php?f=38&t=12064
Kite's Mailing List: https://goo.gl/forms/e97uUvPOfUxPWdz82
Kite's FAQ: https://kiteretro.com/faq/


ImageImageImageImageImage

User avatar
VeteranGamer
Posts: 1738
Joined: Thu Jan 26, 2017 11:12 am
Location: London, UK
Has thanked: 528 times
Been thanked: 909 times

Re: 3.2" SPI LCD (working and ready for a build)

Post by VeteranGamer » Thu Oct 12, 2017 4:53 am

kite wrote:
Thu Oct 12, 2017 4:20 am
I don't know sorry. When launching fbcp and in /var/log/messages it will report the FPS? It wouldn't be too hard to modify the fbcp source to get it to collect an FPS and print to screen once a second
thanks....

i think this might be up moosepr alley..... time to trouble him....

User avatar
YaYa
Posts: 1719
Joined: Mon Jun 26, 2017 12:42 pm
Location: brittany - France
Has thanked: 871 times
Been thanked: 689 times
Contact:

Re: 3.2" SPI LCD (working and ready for a build)

Post by YaYa » Thu Oct 12, 2017 4:55 am

VeteranGamer wrote:
Thu Oct 12, 2017 4:53 am
thanks....

i think this might be up moosepr alley..... time to trouble him....
:lol: :lol:
Follow me on instagram Image

User avatar
VeteranGamer
Posts: 1738
Joined: Thu Jan 26, 2017 11:12 am
Location: London, UK
Has thanked: 528 times
Been thanked: 909 times

Re: 3.2" SPI LCD (working and ready for a build)

Post by VeteranGamer » Thu Oct 12, 2017 6:05 am

moosepr wrote:
Tue Oct 10, 2017 10:39 am
have you got the FPS command in you fbtft.config? mario's legs look a little slow in super mario world. I normally use that start video as an indication of how fast things are running. When he is running, his legs go like mad!!

i would normally say to up the speed, but you have already done that! the FPS command adjusts how often it sends an update to the screen. I normally use fps=60 but it never actually gets to 60.

The tearing you only really tend to see on large colour shifts, like when the sega logo fades out at the start of sonic. There is no getting away from the tearing im afraid.
I added fps=60 in

/etc/modprobe.d/fbtft.conf (not 100% if thats where it should be)

and I did notice a difference in Mario running




is there a way to actually see what the FPS is in the games....

.

User avatar
Vineheart01
Posts: 55
Joined: Sat Aug 12, 2017 5:55 am
Location: Nebraska, USA
Has thanked: 8 times
Been thanked: 5 times

Re: 3.2" SPI LCD (working and ready for a build)

Post by Vineheart01 » Thu Oct 12, 2017 12:06 pm

Looks a LOT better than the composite BW screens imo.
I plan to make more than one GBZ since i have a few friends that would love to have one. Plus im having fun stretching my electronic knowledge a bit for a change (i got a job where i almost never touch a soldering iron so ive kinda lost most of my knowledge from college, and when i do touch one im just putting a jumper wire in). First one im using a BW just so i can follow guides a bit closer, but from then on i plan to experiment. I'll have to try this screen!

User avatar
tinkerBOY
Posts: 710
Joined: Tue May 30, 2017 4:00 am
Has thanked: 294 times
Been thanked: 206 times

Re: 3.2" SPI LCD (working and ready for a build)

Post by tinkerBOY » Thu Oct 12, 2017 5:16 pm

kite wrote:
Thu Oct 12, 2017 3:46 am
That is the FPS being output to the framebuffer, but FBTFT/FBCP reads FROM that framebuffer as fast as it can, so that FPS isn't what you're actually seeing.. you need to know the FPS that FBTFT/FBCP is able to write to the screen which will be a lot less. You will see 60fps on HDMI though and if you put side by side you'll see that they are quite different in terms of FPS
Im getting a 60fps too when i tried a 2.2" spi screen but obviously not 60fps at all.
New! tinkerBOY PowerSwitch v1.0 with Safe Shutdown
Game Boy Zero Controllers available @ tinkerBOY.xyz * Support
tinkerBOY Controller v3.0 - built-in usb controller, usb audio, and usb hub
tinkerBOY Controller v2.0 - GPIO buttons and builtin PWM Audio and Amplifier
tinkerBOY Controller v1.1 - simple pcb button
* DPI Adapter - better display for GBZ
* keyboard converters - IBM XT/AT Soarer's Converter | ADB to USB Converter

User avatar
VeteranGamer
Posts: 1738
Joined: Thu Jan 26, 2017 11:12 am
Location: London, UK
Has thanked: 528 times
Been thanked: 909 times

Re: 3.2" SPI LCD (working and ready for a build)

Post by VeteranGamer » Fri Oct 13, 2017 12:34 am

tinkerBOY wrote:
Thu Oct 12, 2017 5:16 pm
kite wrote:
Thu Oct 12, 2017 3:46 am
That is the FPS being output to the framebuffer, but FBTFT/FBCP reads FROM that framebuffer as fast as it can, so that FPS isn't what you're actually seeing.. you need to know the FPS that FBTFT/FBCP is able to write to the screen which will be a lot less. You will see 60fps on HDMI though and if you put side by side you'll see that they are quite different in terms of FPS
Im getting a 60fps too when i tried a 2.2" spi screen but obviously not 60fps at all.

how do you know your getting 60FPS.....

User avatar
moosepr
Posts: 524
Joined: Wed Jan 25, 2017 6:18 am
Has thanked: 69 times
Been thanked: 241 times
Contact:

Re: 3.2" SPI LCD (working and ready for a build)

Post by moosepr » Fri Oct 13, 2017 1:09 am

Yeah that looks much better, you can see his little feet going like mad now!

You can add debug=32 at the end of your config, then if you ssh in, a quick dmesg will show you the calculated FPS that the screen is getting (how long each screen update is taking). I would say take it back out if the config once your done, save spamming the system logs
Get a small cheep LCD in your project https://www.sudomod.com/forum/viewtopic.php?f=22&t=2312
Wrap it all round a battery https://www.sudomod.com/forum/viewtopic.php?f=13&t=2292
Or use a custom PCB to make it really small https://www.sudomod.com/forum/viewtopic.php?f=13&t=2512
or make it really really really really tiny!! https://www.sudomod.com/forum/viewtopic.php?f=13&t=2919

User avatar
VeteranGamer
Posts: 1738
Joined: Thu Jan 26, 2017 11:12 am
Location: London, UK
Has thanked: 528 times
Been thanked: 909 times

Re: 3.2" SPI LCD (working and ready for a build)

Post by VeteranGamer » Fri Oct 13, 2017 2:32 am

moosepr wrote:
Fri Oct 13, 2017 1:09 am
Yeah that looks much better, you can see his little feet going like mad now!

You can add debug=32 at the end of your config, then if you ssh in, a quick dmesg will show you the calculated FPS that the screen is getting (how long each screen update is taking). I would say take it back out if the config once your done, save spamming the system logs

just so that i know i doing it correctly.....

added debug=32 to the end of the config....
did dmesg....

is this what im meant to have seen....

Image


i'm not 100% certain, so apologies for the noob questioning....

.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest