Browse Source

config: update ENTT_PAGE_SIZE

Michele Caini 5 years ago
parent
commit
e60cdb2e3b
3 changed files with 2 additions and 3 deletions
  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: remove non-const registry::storage function?
 * HP: review registry::get, registry::try_get
 * HP: review registry::get, registry::try_get
 * HP: weak reference wrapper example with custom storage.
 * 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: merge view and view pack
 * HP: invalid view auto-refresh
 * HP: invalid view auto-refresh
 * HP: paginate pools
 * 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
 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
 known perhaps is that these are paged to reduce memory consumption in some
 corner cases.<br/>
 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.
 all case, the chosen value **must** be a power of 2.
 
 
 ## ENTT_ASSERT
 ## ENTT_ASSERT

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

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