Changeset View
Changeset View
Standalone View
Standalone View
effects/showfps/showfps.cpp
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | |||||
42 | const int FPS_WIDTH = 10; | 42 | const int FPS_WIDTH = 10; | ||
43 | const int MAX_TIME = 100; | 43 | const int MAX_TIME = 100; | ||
44 | 44 | | |||
45 | ShowFpsEffect::ShowFpsEffect() | 45 | ShowFpsEffect::ShowFpsEffect() | ||
46 | : paints_pos(0) | 46 | : paints_pos(0) | ||
47 | , frames_pos(0) | 47 | , frames_pos(0) | ||
48 | , m_noBenchmark(effects->effectFrame(EffectFrameUnstyled, false)) | 48 | , m_noBenchmark(effects->effectFrame(EffectFrameUnstyled, false)) | ||
49 | { | 49 | { | ||
50 | initConfig<ShowFpsConfig>(); | ||||
50 | for (int i = 0; | 51 | for (int i = 0; | ||
51 | i < NUM_PAINTS; | 52 | i < NUM_PAINTS; | ||
52 | ++i) { | 53 | ++i) { | ||
53 | paints[ i ] = 0; | 54 | paints[ i ] = 0; | ||
54 | paint_size[ i ] = 0; | 55 | paint_size[ i ] = 0; | ||
55 | } | 56 | } | ||
56 | for (int i = 0; | 57 | for (int i = 0; | ||
57 | i < MAX_FPS; | 58 | i < MAX_FPS; | ||
▲ Show 20 Lines • Show All 488 Lines • Show Last 20 Lines |