summaryrefslogtreecommitdiff
path: root/scene/3d
AgeCommit message (Collapse)Author
2017-12-21Change skeleton processing to work on global coordinates, should help fix ↵Juan Linietsky
many import problems from Blender, GLTF2, etc.
2017-12-21-Make capture dependent on a cell size, not subdivision.Juan Linietsky
-Fixed a bug recently introduced when releasing mouse events and calling popups
2017-12-20Prevent false sharing in lightbaker RNG stateHein-Pieter van Braam
The previous commit corrected the RNG behavior for the lightbaker but also made it significantly slower on high core count systems. Due to the vector of states being physically close together in RAM we force a cache synchronization across all cores whenever we call for the next random number to be generated. This will create a temporary local copy of the RNG state before entering the loop and then saving it back to the global state when done. This will preserve the per-thread RNG state (and random number quality) while significantly improving performance. On my 16 thread box it saves 3 minutes baking the Sponza scene, bringing performance back in line to before the various RNG fixes were introduced, being slightly faster than the first implementation.
2017-12-20Fix lightmapper rngHein-Pieter van Braam
In our previous attempts to fix the lightmapper we may have inadvertently introduced the same issue we were trying to fix. It appears that rand() will on some platforms introduce a mutex making it slower and on others may have a per-thread state that would need to be initialized with srand() on each thread. This slows down the lightbaking further. This sets up a separate rng state for each OpenMP thread by calling rand() only in the single-threaded part of the code. We then keep a vector of states. I believe this solves our problems.
2017-12-20Correct license headers in main.cpp and voxel_light_baker.cppHein-Pieter van Braam
Sorry for the churn
2017-12-20Fix lightbaker clang-format issue and add license headersHein-Pieter van Braam
2017-12-20Lightbaker: include stdlib.h to fix CI buildsHein-Pieter van Braam
2017-12-19Fix randomness in voxel light baker, closes #14841Juan Linietsky
2017-12-19Fix raytrace lightmap bake biasJuan Linietsky
2017-12-19properly plot normal when bakingJuan Linietsky
2017-12-19Fixed bug where all file dialogs requested thumbnails even if hidden.Juan Linietsky
2017-12-18doc: Sync classref with current sourceRémi Verschelde
2017-12-18Added baked light support for gridmaps.Juan Linietsky
2017-12-17Fix Sprite3D alpha_cut member not being initializedStefano Bonicatti
2017-12-17Merge pull request #14775 from hpvb/limit-lightmapper-subdivRémi Verschelde
Limit the lightmapper subdivide to 1024
2017-12-17Limit the lightmapper subdivide to 1024Hein-Pieter van Braam
Due to memory contraints in other places in Godot it is unlikely that anything higher than 1024 will actually work. When/if we improve memory management for vectors we can increase this limit again
2017-12-17Cleanup some #if 0'd codeRémi Verschelde
2017-12-17Merge pull request #14760 from hpvb/add-several-unlikely-macrosRémi Verschelde
Add several unlikely() macros
2017-12-17Merge pull request #14758 from hpvb/optimize-lightbaker-rngRémi Verschelde
Use a more naive RNG for the lightmapper
2017-12-17Add several unlikely() macrosHein-Pieter van Braam
Based off of perf-based prediction misses these seem to be the lowest-hanging fruit for quick (albeit small) improvements. These are based on: * baking a complex lightmap * running platformer 3d * running goltorus
2017-12-17Merge pull request #14761 from fire/gdnative-lightmapperRémi Verschelde
Fix gdnative generation for lightmapper.
2017-12-17Tweak OpenMP parameters for lightbakerHein-Pieter van Braam
On higher threadcount systems this allows for better utilization. On my 16 thread box CPU use goes from 10 - 11 threads to a steady 15 threads on the Sponza scene. Baking time goes from ~10:00 to ~07:30 for me. On lower threadcount systems I expect some improvement also but likely a little less.
2017-12-16Fix gdnative generation for lightmapper.K. S. Ernest (iFire) Lee
2017-12-17Use a more naive RNG for the lightmapperHein-Pieter van Braam
This speeds up the lightmapper by about 10% with no visible impact. A comparison is up here: https://tmm.cx/nextcloud/s/Log1eAXen1dJzBz AMD Ryzen 7 1700 Eight-Core Processor Sponza scene pcg32 256/256/high 00:10:13 256/256/medium 00:02:50 256/256/low 00:01:11 xorshift 256/256/high 00:09:32 256/256/medium 00:02:34 256/256/low 00:01:05
2017-12-16Merge pull request #14330 from matrem/particles_spreadRémi Verschelde
Spread should be in degree (see documentation, and flag_disable_z case)
2017-12-16Merge pull request #14365 from willnationsdev/camera-docsRémi Verschelde
[DOCS] Camera property changes
2017-12-16Merge pull request #14676 from NathanWarden/nav_create_to_addRémi Verschelde
Renamed navmesh_create to navmesh_add since no navmesh is created.
2017-12-15particles spread/flatness fixes, pi factorizationmatrem
2017-12-15Renamed navmesh/poly_create to navmesh/poly_add since no navmesh is created.Nathan Warden
2017-12-15BakedLightmap: Update gizmo when setting extents.Andreas Haas
Fixes #14696.
2017-12-14fix for compiling the new lightmapperMichele Valente
also changed two calls that were ambiguous
2017-12-14-Add lightmapperJuan Linietsky
-Fixes to unwrapper (remove degenerates), makes Thekla not crash -Added optional cancel button in EditorProgress -Added function to force processing of events (needed for cancel button)
2017-12-11[DOCS] Camera property changesWill Nations
2017-12-11Fixed bad bindingsAndreaCatania
2017-12-10Implemented physics linear and angular lockAndreaCatania
2017-12-10Style: Re-apply clang-format over recent invalid additionsRémi Verschelde
2017-12-09Update GIProbe data instead of creating a new one on bakeMarc Gilleron
2017-12-09Merge pull request #12756 from Stratos695/masterRémi Verschelde
Allowing double-axis lock in RigidBody & KinematicBody (Fixes #12500)
2017-12-07Implement orbit velocity in particles (this is for 2D only, like in 2.1), ↵Juan Linietsky
closes #12764 Fixed tangential velocity (was broken)
2017-12-07Added some clean up in camera/viewport management. Fixes #12279, Fixes #12774Juan Linietsky
2017-12-07Style: Apply new clang-format 5.0 style to all filesRémi Verschelde
2017-12-06-Fix particles with size==0, closes #13931Juan Linietsky
-Fixed material previews (dont show sphere unless for spatial)
2017-11-30Ported 'Exclude Parent' from Raycast2D to RaycastMarco Masselli
2017-11-25Tweak the default camera node settingsHugo Locurcio
- Increase FOV to 70 - Put the Z-near plane at 0.05 meters
2017-11-25Made Vector::ptrw explicit for writing, compiler was sometimes using the ↵Juan Linietsky
wrong function, leading to unnecesary copy on writes and reduced performance.
2017-11-22change default propagation valueJuan Linietsky
2017-11-21Removed type_mask and fixed some variable nameAndreaCatania
2017-11-20Merge pull request #13023 from tom95/particles-align-y-12865Rémi Verschelde
Make particles with DISABLE_Z active respect ALIGN_Y. Fixes #12865
2017-11-19Ability to change indirect light energy.Juan Linietsky
2017-11-19Make particles with DISABLE_Z active respect ALIGN_Y. Fixes #12865Tom Beckmann