insane performance boost (on 3ds)

This commit is contained in:
2026-09-01 21:16:23 +02:00
parent 0746295013
commit dd97aab749
3 changed files with 6 additions and 4 deletions
+3
View File
@@ -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
*/ */
+1 -2
View File
@@ -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
+2 -2
View File
@@ -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