Author Topic: Coolboy RS-97 (JZ4760 JZ4760B) (RetroGame 45$ Dingux handheld  (Read 577947 times)

kapster

  • Posts: 108
Re: Coolboy RS-97 RetroGame 45$ Dingux handheld
« Reply #360 on: February 02, 2018, 07:06:31 pm »
Thats how it is. The pixels are physically twice as wide as high. Why I don't know.

In my sdlfix, I just double each line of a 320x240px screen using memcopy. Rendered on the 320x480, with half pixel height it looks correct.

For those of you who try to fix the resolution on other emulators. Don't just render at 320x480! Doing so will probably use scaling, and scaling in software is very slow! Just double the lines and you will be fine. The sdlfix is still very slow. Blitting seems to be 60% slower :o (used gpmark from here: http://dl.openhandhelds.org/cgi-bin/dingoo.cgi?0,0,0,0,8,614)

I tried Doom and Duke3D from the local pack floating around. All doom versions and Duke run great using sdlfix.
If you use the internal scaling of the games and set the resolution to 320x480, duke runs at crawling 15-20fps in the first level. Using sdlfix, its at 40-50fps

I?m having trouble getting your sdl fix to work for any of the alternate emulators you provided. Does it require your dmenu hack (I didn?t install it because I didn?t want to modify the internal sad card yet)?  I edited the .sh scripts so they point to the correct location. DinguxCommander works and I execute the shell scripst from there, it seems to run something but then drops me back to commander without the emulator starting.

My external sd appears to mount in a different spot than yours unless I?m misinterpreting something. Your files expect the card at /mnt/mmc while mine appears to mount under /boot/usr/mmc. Thoughts?

I got it to work, I copied the method you used for DinguxCommander.  I didn't realize the .dge file in that case was just a shell script.  I can now launch the emulators form the built in rom filemanager.  Still not sure why the original shell script method didn't work.

Also I now see in some of the emulators that /mnt/mmc does in fact exist so I once again assume we are working with identical firmware.

seagal

  • Posts: 35
Re: Coolboy RS-97 RetroGame 45$ Dingux handheld
« Reply #361 on: February 02, 2018, 07:46:34 pm »
Thats how it is. The pixels are physically twice as wide as high. Why I don't know.

In my sdlfix, I just double each line of a 320x240px screen using memcopy. Rendered on the 320x480, with half pixel height it looks correct.

For those of you who try to fix the resolution on other emulators. Don't just render at 320x480! Doing so will probably use scaling, and scaling in software is very slow! Just double the lines and you will be fine. The sdlfix is still very slow. Blitting seems to be 60% slower :o (used gpmark from here: http://dl.openhandhelds.org/cgi-bin/dingoo.cgi?0,0,0,0,8,614)

I tried Doom and Duke3D from the local pack floating around. All doom versions and Duke run great using sdlfix.
If you use the internal scaling of the games and set the resolution to 320x480, duke runs at crawling 15-20fps in the first level. Using sdlfix, its at 40-50fps

how does mame works with sdlfix?

Im doing testing with scaling and Im not happy with what im having.

First: this is mame withouth scaling, im using wonder boy for testing, it works around 50fps, great, wonderful.

http://www.mediafire.com/file/0h5uaau154irtus/mame_noscale.rar

this one uses softstresch, I knew that thats gonna be slow, but is worse than slow... arond 17 fps.

http://www.mediafire.com/file/vv8f1uiw1i16nu3/mame_softstrech.rar

And this one is modifing drawing routines, doubling vertical pixels, it does better job, but still really slow, around 28 fps with wonder boy.

http://www.mediafire.com/file/blfo4ujhf5bb72f/mame_mod.rar

my settings while testing: video aspect- normal, video sync - normal, frameskip auto, sound off.

I swapped X for A , is more confortable while playing, but you have to select games with X.


literallywhy

  • Posts: 50
Re: Coolboy RS-97 RetroGame 45$ Dingux handheld
« Reply #362 on: February 02, 2018, 08:08:03 pm »
Thats how it is. The pixels are physically twice as wide as high. Why I don't know.

In my sdlfix, I just double each line of a 320x240px screen using memcopy. Rendered on the 320x480, with half pixel height it looks correct.

For those of you who try to fix the resolution on other emulators. Don't just render at 320x480! Doing so will probably use scaling, and scaling in software is very slow! Just double the lines and you will be fine. The sdlfix is still very slow. Blitting seems to be 60% slower :o (used gpmark from here: http://dl.openhandhelds.org/cgi-bin/dingoo.cgi?0,0,0,0,8,614)

I tried Doom and Duke3D from the local pack floating around. All doom versions and Duke run great using sdlfix.
If you use the internal scaling of the games and set the resolution to 320x480, duke runs at crawling 15-20fps in the first level. Using sdlfix, its at 40-50fps


Ah that might be a problem then...
At first I was kinda happy about it because the screen is pretty high ppi and looks nice, but the performance cost seems to be very high. The CPU is overclockable right? Although I highly doubt it would be enough to compensate.

kapster

  • Posts: 108
Re: Coolboy RS-97 RetroGame 45$ Dingux handheld
« Reply #363 on: February 02, 2018, 08:12:06 pm »
Does anyone know what "type" of screen we have on this device.  The contrast and colors are surprisingly good, particularly the black levels (when a game isn't scaled to full screen).  The viewing angles aren't great and the resolution is probably the only other issue.  The "shape" is good for 8 and 16 bit era games mostly.

lemmywinks

  • Posts: 2883
Re: Coolboy RS-97 RetroGame 45$ Dingux handheld
« Reply #364 on: February 02, 2018, 09:43:17 pm »
Two of the fan made Zelda games (Oni Link Begins and Return of the Hylian) work fine on this with the SDL fix, Time to Triumph crashes back to the menu though.
http://dl.openhandhelds.org/cgi-bin/dingoo.cgi?0,0,0,0,26,401
http://dl.openhandhelds.org/cgi-bin/dingoo.cgi?0,0,0,0,26,389

Also tried opengiana which runs in half screen despite the sdl fix, works fine on the K3P. Nicky2 and Openjazz both crash on either console.
Handhelds:
GPD Win, GPD XD 64gb, PlayGo, RS-90, 3DS XL, DSi XL, GBA SP, GBBC Clone, Gameboy Pocket c/w screen mod, PSP Go
PC:
ASUS TUF, Medion Erazer, Toshiba Z20t, Dell Mini 9, Psion 5MX, Toshiba 3480ct
Tons of other old laptops and tablets.....

kapster

  • Posts: 108
Re: Coolboy RS-97 RetroGame 45$ Dingux handheld
« Reply #365 on: February 03, 2018, 05:45:33 am »
Does anyone know which roms work with the built in CPS emulator?  I want to fill out the rest of the collection but don't know which romset to use.

dcervi

  • Posts: 67
Re: Coolboy RS-97 RetroGame 45$ Dingux handheld
« Reply #366 on: February 03, 2018, 07:52:13 am »
Well, the JZ4760 has hardware image scaling through it's IPU, so when used the odd LCD resolution shouldn't have any impact on performance.

Apart from the processor speed increase, the JZ4760 adds hardware floating point and the RS-97 has 128MB RAM compared to 32MB on the A320. With a proper OS and libraries performance should be much better. It even has a GPU for 2D acceleration. If we learn how to use it the performance increase should be even bigger.

Enviat des del meu SM-G950F usant Tapatalk


Jack83

  • Posts: 162
Re: Coolboy RS-97 RetroGame 45$ Dingux handheld
« Reply #367 on: February 03, 2018, 12:21:44 pm »

how does mame works with sdlfix?

Im doing testing with scaling and Im not happy with what im having.

First: this is mame withouth scaling, im using wonder boy for testing, it works around 50fps, great, wonderful.

http://www.mediafire.com/file/0h5uaau154irtus/mame_noscale.rar

this one uses softstresch, I knew that thats gonna be slow, but is worse than slow... arond 17 fps.

http://www.mediafire.com/file/vv8f1uiw1i16nu3/mame_softstrech.rar

And this one is modifing drawing routines, doubling vertical pixels, it does better job, but still really slow, around 28 fps with wonder boy.

http://www.mediafire.com/file/blfo4ujhf5bb72f/mame_mod.rar

my settings while testing: video aspect- normal, video sync - normal, frameskip auto, sound off.

I swapped X for A , is more confortable while playing, but you have to select games with X.

I made a non crashing sdlfix for mame. Blitting peformance is also better, about 160fps in benchmark.

Used your mame_noscale and the sdlfix. I get about 40-50fps
« Last Edit: February 03, 2018, 12:47:07 pm by Jack83 »

ruffnutts

  • Posts: 2648
Re: Coolboy RS-97 RetroGame 45$ Dingux handheld
« Reply #368 on: February 03, 2018, 12:54:45 pm »
Maybe we need a releases section on the forum?

Jutleys

  • Posts: 1797
Re: Coolboy RS-97 RetroGame 45$ Dingux handheld
« Reply #369 on: February 03, 2018, 02:47:04 pm »

how does mame works with sdlfix?

Im doing testing with scaling and Im not happy with what im having.

First: this is mame withouth scaling, im using wonder boy for testing, it works around 50fps, great, wonderful.

http://www.mediafire.com/file/0h5uaau154irtus/mame_noscale.rar

this one uses softstresch, I knew that thats gonna be slow, but is worse than slow... arond 17 fps.

http://www.mediafire.com/file/vv8f1uiw1i16nu3/mame_softstrech.rar

And this one is modifing drawing routines, doubling vertical pixels, it does better job, but still really slow, around 28 fps with wonder boy.

http://www.mediafire.com/file/blfo4ujhf5bb72f/mame_mod.rar

my settings while testing: video aspect- normal, video sync - normal, frameskip auto, sound off.

I swapped X for A , is more confortable while playing, but you have to select games with X.

I made a non crashing sdlfix for mame. Blitting peformance is also better, about 160fps in benchmark.

Used your mame_noscale and the sdlfix. I get about 40-50fps

Can you share the sdl fix for no scale mame screen is very small.

ADY

  • Posts: 103
Re: Coolboy RS-97 RetroGame 45$ Dingux handheld
« Reply #370 on: February 03, 2018, 02:54:18 pm »
I've been testing out a lot of different GBA games on the new emulator, I've noticed more than a few problems.

Major Problems

Glitches: A lot of text and graphics glitching in games. Some examples. In Yoshi's Island, the half the map screen is glitched mess as is the score board. In GT Advance 3 the cars tend to flicker awfully. Metroid Fusion after you get to the first statue it is supposed to show you the map and move a cursor from your location to the room you're supposed to go, normally it take 2 seconds for the move, here it takes more than a minute and you can't skip it, the music still runs at full speed. The Minish Caps menu transitions are painfully slow, music again at normal speed. Teenage Mutant Ninja Turtles when the level starts the screen has black horizontal line flickering over the entire screen. In Mortal Kombat Deadly Alliance enter a match and... well it's hard to explain, there are no fighters and the camera is flung all about the area with many graphical glitches on screen. Many other games have minor glitched text or flashes of white or color during screen transitions.


Freezing: This happens to a few games. Donkey Kong Country 3 and Steel Empire freeze on launch. Donkey Kong Country 2 the opening titles role as normal but it freezes right before the main menu. The Minish Cap, the controls freeze up after entering in my name. Iridion 3D freezes after the opening credits, it's sequel Iridion 2 freezes on launch, unlike the others freezes for the Iridion games I can't access the emulator menu and need to reset.  Teenage Mutant Ninja Turtles glitches when the level starts as stated above but the controls are also frozen, eventually the screen goes black.

Minor Problems

Slowdown: Most games are very playable with frameskip set at auto 2 or 3 but at certain times things slow. Often it's just small stutters but in Crash Bandicoots Huge Adventure, the water level turns the game into a powerpoint presentation no mater how the frame skip is set.

Aspect Ratio: The emulator has 3 settings for this, Normal, Medium and Full. Normal gives a smallish picture in the middle of the screen, 3:2 in native res. Full the picture is in 4:3 stretched and takes up the full screen. Medium is I assume supposed to be 3:2 aspect ratio at max size like the original REVO but it is just another 4:3 stretched.

 More than half the games I tested seemed to work fine however haven't done many extended play sessions with them because I would not want to commit to a game knowing that at any point it could crash or catastrophically glitch. Unlike most of the other new emulators I would call the GBA one in it's current state unplayable in a practical sense for this reason. Starting a game with the intent to complete it is quite the gamble.

---

Unrelated to the GBA Emulator I ran into a problem with the menu. When attempting switching back to the old menu I accidentally clicked Mount USB, when after I pressed Enable Old DMenu it froze to a black screen, I could not even turn off the system. I had to find a screw driver and remove battery, it booted as normal after that thank goodness.
« Last Edit: February 03, 2018, 03:08:44 pm by ADY »

Jack83

  • Posts: 162
Re: Coolboy RS-97 RetroGame 45$ Dingux handheld
« Reply #371 on: February 03, 2018, 03:30:53 pm »
Unrelated to the GBA Emulator I ran into a problem with the menu. When attempting switching back to the old menu I accidentally clicked Mount USB, when after I pressed Enable Old DMenu it froze to a black screen, I could not even turn off the system. I had to find a screw driver and remove battery, it booted as normal after that thank goodness.

Was the device connected with usb? Switching between menus triggers a reboot and I ran into a similar problem by simply pressing the power button. The RS97 does have reset button, but you need a pin.

 

ADY

  • Posts: 103
Re: Coolboy RS-97 RetroGame 45$ Dingux handheld
« Reply #372 on: February 03, 2018, 03:51:26 pm »
Was the device connected with usb? Switching between menus triggers a reboot and I ran into a similar problem by simply pressing the power button. The RS97 does have reset button, but you need a pin.

Yes, it was charging on my computer, I was going to switch to the old DMenu and then turn it off and on when I hit mount USB instead then DMenu after. Good to know about the reset button.

Any idea why the GBA emu is in such bad shape compared to the others?

pcercuei

  • Posts: 1728
    • My devblog
Re: Coolboy RS-97 RetroGame 45$ Dingux handheld
« Reply #373 on: February 03, 2018, 04:45:36 pm »
I had some questions on how to calculate processor cycles for ram timing. This rs97 is using a hynix y5 variant with a slightly lower cas latency etc than the s6 hynix chip from the gcw0. My thought was the value in the header file was in relation to the bus speed, I'm sure it's more involved than that, but I'll hit you up on IRC next time I see ya.
I'm not on IRC very often these days, I'm busy traveling in the south of Spain.

Before configuring the RAM timings, you have to make sure that you configure the PLL properly. The PLL is what will convert the external clock (should be 12 MHz) to the various clocks needed for the system (CPU, RAM, and buses).
The PLL should be configured to 600 MHz, and dividers set to CPU=1, H0 (RAM) = 4, H1/H2 = 4. That will make the CPU run at 600 MHz, and the rest at 150 MHz (I doubt the RAM can run at 300 MHz).

The values in the hynix header file are either in nanoseconds, or in clock cycles. Have a look at the S6 hynix programming manual, all the info should be in there. The CAS latency can either be 2 or 3; lower latency is better but it's not sure that it will work. Start with CAS=3, adjust the other values, and if it works fine try CAS=2.

Steward

  • Posts: 149
    • Steward's tutorial website
Re: Coolboy RS-97 RetroGame 45$ Dingux handheld
« Reply #374 on: February 04, 2018, 06:22:12 am »
Hi,
@SNESFAN  thanks your for inspiriting my interesting on this device
@antonio Castro thanks for donation for this device to me
@DimitrisC thanks for your contribution on PCSX4ALL, even I patched your source code by dirty method, ha ha

I am working on porting new OS and emulators on this device (RetroGame/RS-97).
And hope this new OS can be released before Chinese New Year (2018.2.15).
Any update will be posted on QQ(開源掌機群) and baidu teiba firstly:
https://tieba.baidu.com/p/5532343198

Currently, I focus on evaluate whether this emulator can be ran on this device or not (just compile it and then run).
If yes, I will try to optimize if possible.

Since IPU will force rotate and stretch the screen (320 to 480 pixel), I cannot disable it.
Maybe, I need to try to disable it again before the new kernel complete by SNESFAN.

If you would like to develop this device, you might interest:
1. how to build buildroot for this device: https://steward-fu.github.io/website/handheld/retrogame/build_toolchain.htm
2. how to replace original os as new rootfs (buildroot): https://steward-fu.github.io/website/handheld/retrogame/replace_os.htm
3. uart debug: https://steward-fu.github.io/website/handheld/retrogame/uart.htm


My website if you interest:
https://steward-fu.github.io/website/handheld.htm

Best regards
Steward
« Last Edit: February 04, 2018, 06:25:43 am by Steward »
Steward Fu

DKL3

  • Posts: 60
Re: Coolboy RS-97 RetroGame 45$ Dingux handheld
« Reply #375 on: February 04, 2018, 07:44:23 am »
Is this device as capable as like the GCW Zero or the Revo K101 in terms of hardware?

Also, looking forward to receiving my unit and putting all this custom stuff on there, Steward. :D

Jack83

  • Posts: 162
Re: Coolboy RS-97 RetroGame 45$ Dingux handheld
« Reply #376 on: February 04, 2018, 09:10:59 am »
@Steward does the buildroot rootfs boot on the old kernel? I would like to try the dmenu on it.

Steward

  • Posts: 149
    • Steward's tutorial website
Re: Coolboy RS-97 RetroGame 45$ Dingux handheld
« Reply #377 on: February 04, 2018, 09:21:33 am »
Yes, I am using old uboot and kernel but new rootfs.
the first 8MB data in internal sdcard include uboot and kernel, so, you can reverse or copy it to your new sdcard by using dd command.
and your new sdcard must be ext3 in first partition because kernel boot arg is: mmcblk0p1 ext3

good luck !
Steward Fu

Jutleys

  • Posts: 1797
Re: Coolboy RS-97 RetroGame 45$ Dingux handheld
« Reply #378 on: February 04, 2018, 11:51:22 am »
@Steward Fu amazing work very much appreciated by all of us.

Steward

  • Posts: 149
    • Steward's tutorial website
Re: Coolboy RS-97 RetroGame 45$ Dingux handheld
« Reply #379 on: February 04, 2018, 02:56:58 pm »
Hi,
All of emulators are ready for optimization.
For this beta OS, it will include the following emulators:
GMenu2X (Main GUI)
GB, GBC, GBA
FC, SFC, MD
PCE, PS1
FBA, DOSBOX
JinYong, SDLPAL, SDLPAL MHV

If you are interesting on optimization, please feel free to contribute it:
https://github.com/steward-fu/gh_retrogame_emulator


More detailed in baidu teiba:
https://tieba.baidu.com/p/5532343198?pn=1


Best regards
Steward
« Last Edit: February 04, 2018, 03:00:37 pm by Steward »
Steward Fu

 

Post a new topic
Post a new topic