FPS++!
This commit is contained in:
parent
a4220f5a12
commit
cd8a192f7c
4 changed files with 8 additions and 4 deletions
|
@ -1033,7 +1033,7 @@ void draw()
|
||||||
c.maxHits = 8;
|
c.maxHits = 8;
|
||||||
c.maxSteps = 10;
|
c.maxSteps = 10;
|
||||||
|
|
||||||
render(player.mCamera,floorHeightAt,ceilingHeightAt,textureAt,pixelFunc,c);
|
render(player.mCamera,floorHeightAt,ceilingHeightAt,textureAt,c);
|
||||||
|
|
||||||
Unit previousDepth;
|
Unit previousDepth;
|
||||||
|
|
||||||
|
|
|
@ -980,9 +980,9 @@ void draw()
|
||||||
player.mCamera.height += player.mHeadBob;
|
player.mCamera.height += player.mHeadBob;
|
||||||
|
|
||||||
#ifdef RENDER_PRECISE
|
#ifdef RENDER_PRECISE
|
||||||
render(player.mCamera,floorHeightAt,0,textureAt,pixelFunc,c);
|
render(player.mCamera,floorHeightAt,0,textureAt,c);
|
||||||
#else
|
#else
|
||||||
renderSimple(player.mCamera,floorHeightAt,textureAt,pixelFunc,rollAt,c);
|
renderSimple(player.mCamera,floorHeightAt,textureAt,rollAt,c);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
player.mCamera.height -= player.mHeadBob;
|
player.mCamera.height -= player.mHeadBob;
|
||||||
|
|
|
@ -504,7 +504,7 @@ void draw()
|
||||||
c.maxSteps = 20;
|
c.maxSteps = 20;
|
||||||
|
|
||||||
player.mCamera.height += player.mHeadBob;
|
player.mCamera.height += player.mHeadBob;
|
||||||
render(player.mCamera,floorHeightAt,0,colorAt,pixelFunc,c);
|
render(player.mCamera,floorHeightAt,0,colorAt,c);
|
||||||
player.mCamera.height -= player.mHeadBob;
|
player.mCamera.height -= player.mHeadBob;
|
||||||
|
|
||||||
if (flyBy && (pokitto.frameCount >> 3) % 3 != 0)
|
if (flyBy && (pokitto.frameCount >> 3) % 3 != 0)
|
||||||
|
|
|
@ -16,6 +16,10 @@
|
||||||
|
|
||||||
#define VERTICAL_FOV UNITS_PER_SQUARE // redefine camera vertical FOV
|
#define VERTICAL_FOV UNITS_PER_SQUARE // redefine camera vertical FOV
|
||||||
|
|
||||||
|
#define PIXEL_FUNCTION pixelFunc
|
||||||
|
/* ^ This has to be defined to the name of the function that will render
|
||||||
|
pixels. */
|
||||||
|
|
||||||
#include "raycastlib.h"
|
#include "raycastlib.h"
|
||||||
#include "Pokitto.h"
|
#include "Pokitto.h"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue