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