Skip to content

Commit 451665c

Browse files
committed
Adding example to makefile
1 parent 4231569 commit 451665c

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

src/samples/Makefile.am

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ SAMPLES = \
2121
gu/clut \
2222
gu/common \
2323
gu/copy \
24+
gu/doublelist \
2425
gu/cube \
2526
gu/envmap \
2627
gu/integerdrawing \
@@ -43,6 +44,7 @@ SAMPLES = \
4344
gu/text \
4445
gu/timing \
4546
gu/vertex \
47+
gu/vsync30FPS \
4648
gu/zbufferfog \
4749
ir/sircs \
4850
ir/irda \

src/samples/Makefile.samples

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ SAMPLES = \
1818
gu/clut \
1919
gu/copy \
2020
gu/cube \
21+
gu/doublelist \
2122
gu/envmap \
2223
gu/integerdrawing \
2324
gu/lights \
@@ -40,6 +41,7 @@ SAMPLES = \
4041
gu/text \
4142
gu/timing \
4243
gu/vertex \
44+
gu/vsync30FPS \
4345
gu/zbufferfog \
4446
ir/sircs \
4547
ir/irda \

src/samples/gu/vsync30FPS/vsync30FPS.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,19 @@
33
* -----------------------------------------------------------------------
44
* Licensed under the BSD license, see LICENSE in PSPSDK root for details.
55
*
6+
* VSYNC 30FPS Sample
7+
* With the sceKernelRegisterSubIntrHandler(PSP_VBLANK_INT, 0, on_vblank, NULL);,
8+
* the on_vblank function is going to be executed each PSP_VBLANK_INT interruption.
9+
* To force 30 FPS, we must ensure the VBLANK interruption happens exactly twice,
10+
* in order to achieve this, we have used 2 semaphores, so before swapping buffers,
11+
* we need to ensure that both semaphores are being signaled already,
12+
* and this is what vsync30 method does.
13+
*
14+
* How there are plenty of applications whose FPS are set to 30FPS,
15+
* this is just an example of how we could achieve this.
16+
*
617
* Copyright (c) 2005 Jesper Svennevid
18+
* Copyright (c) 2025, Francisco Javier Trujillo Mata <[email protected]>
719
*/
820

921
#include <pspkernel.h>

0 commit comments

Comments
 (0)