Merge remote-tracking branch 'origin/master' into 1.6
This commit is contained in:
@@ -25,7 +25,7 @@ API_CLASS(Abstract, NoSpawn) class FLAXENGINE_API Asset : public ManagedScriptin
|
||||
{
|
||||
DECLARE_SCRIPTING_TYPE_NO_SPAWN(Asset);
|
||||
friend Content;
|
||||
friend LoadAssetTask;
|
||||
friend class LoadAssetTask;
|
||||
friend class ContentService;
|
||||
public:
|
||||
/// <summary>
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
struct AssetInfo;
|
||||
class Content;
|
||||
class Asset;
|
||||
class LoadAssetTask;
|
||||
class ContentLoadTask;
|
||||
template<typename T>
|
||||
class AssetReference;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#include "Engine/Core/Log.h"
|
||||
#include "Engine/Core/Collections/Array.h"
|
||||
#include "Engine/Core/Collections/Sorting.h"
|
||||
#include <ThirdParty/tracy/Tracy.h>
|
||||
#include <ThirdParty/tracy/tracy/Tracy.hpp>
|
||||
|
||||
static bool CompareEngineServices(EngineService* const& a, EngineService* const& b)
|
||||
{
|
||||
|
||||
@@ -395,7 +395,7 @@ uint64 RenderTools::CalculateTextureMemoryUsage(PixelFormat format, int32 width,
|
||||
float RenderTools::ComputeBoundsScreenRadiusSquared(const Float3& origin, float radius, const Float3& viewOrigin, const Matrix& projectionMatrix)
|
||||
{
|
||||
const float screenMultiple = 0.5f * Math::Max(projectionMatrix.Values[0][0], projectionMatrix.Values[1][1]);
|
||||
const float distSqr = Float3::DistanceSquared(origin, viewOrigin);
|
||||
const float distSqr = Float3::DistanceSquared(origin, viewOrigin) * projectionMatrix.Values[2][3];
|
||||
return Math::Square(screenMultiple * radius) / Math::Max(1.0f, distSqr);
|
||||
}
|
||||
|
||||
|
||||
@@ -73,9 +73,7 @@ void RenderView::PrepareCache(const RenderContext& renderContext, float width, f
|
||||
|
||||
WorldPosition = Origin + Position;
|
||||
|
||||
// Ortho views have issues with screen size LOD culling
|
||||
const float modelLODDistanceFactor = (renderContext.LodProxyView ? renderContext.LodProxyView->IsOrthographicProjection() : IsOrthographicProjection()) ? 100.0f : ModelLODDistanceFactor;
|
||||
ModelLODDistanceFactorSqrt = modelLODDistanceFactor * modelLODDistanceFactor;
|
||||
ModelLODDistanceFactorSqrt = ModelLODDistanceFactor * ModelLODDistanceFactor;
|
||||
|
||||
// Setup main view render info
|
||||
if (!mainView)
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include "Engine/Scripting/ManagedCLR/MCore.h"
|
||||
#if TRACY_ENABLE
|
||||
#include "Engine/Core/Math/Math.h"
|
||||
#include <ThirdParty/tracy/Tracy.h>
|
||||
#include <ThirdParty/tracy/tracy/Tracy.hpp>
|
||||
#endif
|
||||
|
||||
Delegate<Thread*> ThreadBase::ThreadStarting;
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#include "Engine/Core/Math/Math.h"
|
||||
#include "Engine/Core/Collections/Array.h"
|
||||
#include "Engine/Scripting/ScriptingType.h"
|
||||
#include <ThirdParty/tracy/Tracy.h>
|
||||
#include <ThirdParty/tracy/tracy/Tracy.hpp>
|
||||
|
||||
#if COMPILE_WITH_PROFILER
|
||||
|
||||
|
||||
@@ -127,7 +127,7 @@ void PluginManagerService::InvokeDeinitialize(Plugin* plugin)
|
||||
return;
|
||||
StringAnsiView typeName = plugin->GetType().GetName();
|
||||
PROFILE_CPU();
|
||||
ZoneName(typeName.Get(), typeName.Length())
|
||||
ZoneName(typeName.Get(), typeName.Length());
|
||||
|
||||
LOG(Info, "Unloading plugin {}", plugin->ToString());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user