Skip to content

Commit

Permalink
Updated to latest vita-sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
notnotme committed Sep 5, 2016
1 parent 7649cbb commit 721b84b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions NotEngine/include/notengine/game/Director.hpp
Expand Up @@ -6,6 +6,7 @@
#include <string>
#include <psp2/ctrl.h>
#include <psp2/touch.h>
#include <psp2/rtc.h>

#include "../system/Singleton.hpp"
#include "GameState.hpp"
Expand All @@ -31,9 +32,9 @@ namespace NotEngine {
SceTouchData mTouchFrontData;
SceTouchData mTouchBackData;

uint64_t mCurrentTicks;
uint64_t mLastFpsTicks;
uint64_t mLastTicks;
SceRtcTick mCurrentTicks;
SceRtcTick mLastFpsTicks;
SceRtcTick mLastTicks;
float mElapsed;
unsigned int mFps;
unsigned int mFrames;
Expand Down
4 changes: 2 additions & 2 deletions NotEngine/source/game/Director.cpp
Expand Up @@ -50,10 +50,10 @@ namespace NotEngine {
const float tickRate = 1.0f / sceRtcGetTickResolution();

sceRtcGetCurrentTick(&mCurrentTicks);
mElapsed = (float) (mCurrentTicks - mLastTicks) * tickRate;
mElapsed = (float) (mCurrentTicks.tick - mLastTicks.tick) * tickRate;
mLastTicks = mCurrentTicks;

if((mCurrentTicks - mLastFpsTicks) * tickRate >= 1) {
if((mCurrentTicks.tick - mLastFpsTicks.tick) * tickRate >= 1) {
mLastFpsTicks = mCurrentTicks;
mFps = mFrames;
mFrames = 0;
Expand Down
2 changes: 1 addition & 1 deletion floodit/Makefile.psp2
Expand Up @@ -35,7 +35,7 @@ all: $(TARGET).vpk
@cd vpk && zip -r -0 $(TARGET).vpk eboot.bin sce_sys

eboot.bin: $(TARGET).velf
$(VITASDK)/bin/vita-make-fself $< $@
$(VITASDK)/bin/vita-make-fself -s $< $@

%.velf: %.elf
$(PREFIX)-strip -g $<
Expand Down

0 comments on commit 721b84b

Please sign in to comment.