-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path3dconfig.hpp
66 lines (51 loc) · 1.12 KB
/
3dconfig.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/**
Copyright (c) 2018 Gombe.
This software is released under the MIT License.
http://opensource.org/licenses/mit-license.php
*/
#ifndef _3DCONFIG
#define _3DCONFIG
const static int window_width = 320;
const static int window_height = 240;
//#define DISABLE_ANIMATION
//#define DISABLE_OUTPUT
#define DRAW_NLINES (window_height)
#define MAXPROC_POLYNUM (300)
#define USE_K210
#if defined(PC)
#undef USE_K210
#define PROCESSNUM 2
#define PTHREAD
#endif
#ifndef USE_K210
#ifndef PC //for esp32
#define ENDIAN_LITTLE
#define OMIT_ZBUFFER_CONFLICT
//comment out if U use M5Stack.
#define ILI9341
#define PROCESSNUM 2
#else
// #define OUTPUTTERMINAL
// #define USE_SDL
#endif
#else//k210
// #define ENDIAN_LITTLE
#define OMIT_ZBUFFER_CONFLICT
#define PROCESSNUM 2
// #define OVER_VOLTAGE
#endif
#ifdef OUTPUTTERMINAL
#undef ENDIAN_LITTLE
#endif
#endif
//k210 configulation reports
// 2540 triangles
// pure drawing framerate
//400MHz
// 1core,45fps, 2core:71fps
//500MHz
// 2core:85fps
//600MHz
// 2core:107fps~
//700MHz~ does not working :(
//160x120 600 dual core, onscreen, 2540 triangles, 155fps