Sfoglia il codice sorgente

config: update ENTT_PAGE_SIZE

Michele Caini 5 anni fa
parent
commit
e60cdb2e3b
3 ha cambiato i file con 2 aggiunte e 3 eliminazioni
  1. 0 1
      TODO
  2. 1 1
      docs/md/config.md
  3. 1 1
      src/entt/config/config.h

+ 0 - 1
TODO

@@ -22,7 +22,6 @@ WIP:
 * HP: remove non-const registry::storage function?
 * HP: review registry::get, registry::try_get
 * HP: weak reference wrapper example with custom storage.
-* HP: review ENTT_PAGE_SIZE, seems "wrong" (see sparse_set)
 * HP: merge view and view pack
 * HP: invalid view auto-refresh
 * HP: paginate pools

+ 1 - 1
docs/md/config.md

@@ -64,7 +64,7 @@ default type if necessary.
 As is known, the ECS module of `EnTT` is based on _sparse sets_. What is less
 known perhaps is that these are paged to reduce memory consumption in some
 corner cases.<br/>
-The default size of a page is 32kB but users can adjust it if appropriate. In
+The default size of a page is 16kB but users can adjust it if appropriate. In
 all case, the chosen value **must** be a power of 2.
 
 ## ENTT_ASSERT

+ 1 - 1
src/entt/config/config.h

@@ -22,7 +22,7 @@
 
 
 #ifndef ENTT_PAGE_SIZE
-#   define ENTT_PAGE_SIZE 4096
+#   define ENTT_PAGE_SIZE 16384
 #endif