gray: add decent defaults for older fx9860g-like models

Gray quality is better on the Graph 35+E II, it still flickers a lot on
other models (as I remembered). There might be better settings out there
but I'm not sure we can reach the quality of the current Graph 35+E II
defaults. The Graph 75+E with which I tested might also be different
from other T6K11 such as the smaller Graph 35+E.
This commit is contained in:
Lephe 2020-06-20 19:16:42 +02:00
parent 1c7b1350b4
commit 4a0fc65c34
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
2 changed files with 13 additions and 2 deletions

1
TODO
View File

@ -12,7 +12,6 @@ Extensions on existing code:
* bopti: try to display fullscreen images with TLB access + DMA on fxcg50
* gray: double-buffer gray settings and unify d* with g*
* topti: support unicode fonts
* gray: find good values for more models than the Graph 35+E II
* dma: fx9860g support (need to switch it on and update the Makefile)
* core: try to leave add-in without reset in case of panic
* hardware: fill in the HWMEM_FITTLB flag

View File

@ -25,7 +25,7 @@ GDATA static volatile int st = 0;
/* Whether the engine is running. Delays of light and dark frames. */
GDATA static int runs = 0;
GDATA static int delays[2] = { 762, 1311 };
GBSS static int delays[2];
/* Underlying timer */
#define GRAY_TIMER 0
@ -49,6 +49,18 @@ GCONSTRUCTOR static void gray_init(void)
vrams[2] = malloc(1024);
vrams[3] = malloc(1024);
#endif /* GINT_STATIC_GRAY */
/* Default delays from Graph 35+E II are different from other models */
if(gint[HWCALC] == HWCALC_G35PE2)
{
delays[0] = 762;
delays[1] = 1311;
}
else
{
delays[0] = 898;
delays[1] = 1350;
}
}
/* gray_quit(): Engine deinitialization() */