common improvements (#366)

- std container replacements for vector, unordered_map, unordered_set
  - unordered_map and unordered_set replaced with ska::flat_hash_map
  - vector replacement is still std::
- unordered_map performance test (std:: vs ska::)
- backlog improvements
- wiArchive improvements
- editor: added option to dump scene to C++ header file
- common improvements, refactors
This commit is contained in:
Turánszki János
2021-11-28 22:12:05 +01:00
committed by GitHub
parent 3a08a2bfc6
commit 16d9a8de74
96 changed files with 2680 additions and 944 deletions
+2 -3
View File
@@ -3,7 +3,6 @@
#include "PaintToolWindow.h"
#include "shaders/ShaderInterop_Renderer.h"
#include <sstream>
#include <cmath>
using namespace wiECS;
@@ -179,7 +178,7 @@ void PaintToolWindow::Create(EditorComponent* editor)
uint64_t sel = textureSlotComboBox.GetItemUserData(textureSlotComboBox.GetSelected());
std::vector<uint8_t> texturefiledata;
wi::vector<uint8_t> texturefiledata;
if (wiHelper::saveTextureToMemoryFile(editTexture, "PNG", texturefiledata))
{
material->textures[sel].resource->filedata = texturefiledata;
@@ -548,7 +547,7 @@ void PaintToolWindow::Update(float dt)
size_t ind;
float affection;
};
static std::vector<PaintVert> paintindices;
static wi::vector<PaintVert> paintindices;
paintindices.clear();
paintindices.reserve(mesh->vertex_positions.size());