insane performance boost (on 3ds)
This commit is contained in:
@@ -107,6 +107,9 @@ class Pool {
|
|||||||
pPos = 0;
|
pPos = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** THE ILLEGAL RESET FUNC */
|
||||||
|
void NoReset() { pPos = 0; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Copy the data of another pool
|
* Copy the data of another pool
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -144,8 +144,6 @@ class TimeStats {
|
|||||||
* Timatrace Functions
|
* Timatrace Functions
|
||||||
*/
|
*/
|
||||||
namespace TT {
|
namespace TT {
|
||||||
class Res;
|
|
||||||
using TraceMap = std::map<std::string, TT::Res>;
|
|
||||||
/**
|
/**
|
||||||
* Data Structure for a TimeTrace Result
|
* Data Structure for a TimeTrace Result
|
||||||
*/
|
*/
|
||||||
@@ -213,6 +211,7 @@ class Res {
|
|||||||
/** Protocol */
|
/** Protocol */
|
||||||
TimeStats protocol;
|
TimeStats protocol;
|
||||||
};
|
};
|
||||||
|
using TraceMap = std::map<std::string, TT::Res>;
|
||||||
/**
|
/**
|
||||||
* Begin a Trace
|
* Begin a Trace
|
||||||
* @param id Name of the Trace
|
* @param id Name of the Trace
|
||||||
|
|||||||
@@ -57,8 +57,8 @@ PD_API const u16& GetIndex(size_t loc) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
PD_API void ResetPools() {
|
PD_API void ResetPools() {
|
||||||
pVtxPool.Reset();
|
pVtxPool.NoReset();
|
||||||
pIdxPool.Reset();
|
pIdxPool.NoReset();
|
||||||
}
|
}
|
||||||
} // namespace Li
|
} // namespace Li
|
||||||
} // namespace PD
|
} // namespace PD
|
||||||
Reference in New Issue
Block a user