mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 06:18:52 +02:00
try to get more coherent names
This commit is contained in:
parent
541e528e57
commit
89f9e5b01b
2 changed files with 5 additions and 5 deletions
|
@ -28,9 +28,9 @@
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#define PROFILE_SCOPE(name) ProfileRange profileRangeThis(name);
|
#define PROFILE_RANGE(name) ProfileRange profileRangeThis(name);
|
||||||
#else
|
#else
|
||||||
#define PROFILE_SCOPE(name)
|
#define PROFILE_RANGE(name)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace gpu {
|
namespace gpu {
|
||||||
|
|
|
@ -395,7 +395,7 @@ void Model::setJointStates(QVector<JointState> states) {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Model::render(float alpha, RenderMode mode, RenderArgs* args) {
|
bool Model::render(float alpha, RenderMode mode, RenderArgs* args) {
|
||||||
PROFILE_SCOPE(__FUNCTION__);
|
PROFILE_RANGE(__FUNCTION__);
|
||||||
// render the attachments
|
// render the attachments
|
||||||
foreach (Model* attachment, _attachments) {
|
foreach (Model* attachment, _attachments) {
|
||||||
attachment->render(alpha, mode);
|
attachment->render(alpha, mode);
|
||||||
|
@ -562,7 +562,7 @@ bool Model::render(float alpha, RenderMode mode, RenderArgs* args) {
|
||||||
|
|
||||||
// Render!
|
// Render!
|
||||||
{
|
{
|
||||||
PROFILE_SCOPE("render Batch");
|
PROFILE_RANGE("render Batch");
|
||||||
::gpu::backend::renderBatch(batch);
|
::gpu::backend::renderBatch(batch);
|
||||||
batch.clear();
|
batch.clear();
|
||||||
}
|
}
|
||||||
|
@ -1555,7 +1555,7 @@ void Model::segregateMeshGroups() {
|
||||||
int Model::renderMeshes(gpu::Batch& batch, RenderMode mode, bool translucent, float alphaThreshold,
|
int Model::renderMeshes(gpu::Batch& batch, RenderMode mode, bool translucent, float alphaThreshold,
|
||||||
bool hasTangents, bool hasSpecular, bool isSkinned, RenderArgs* args) {
|
bool hasTangents, bool hasSpecular, bool isSkinned, RenderArgs* args) {
|
||||||
|
|
||||||
PROFILE_SCOPE(__FUNCTION__);
|
PROFILE_RANGE(__FUNCTION__);
|
||||||
bool dontCullOutOfViewMeshParts = Menu::getInstance()->isOptionChecked(MenuOption::DontCullOutOfViewMeshParts);
|
bool dontCullOutOfViewMeshParts = Menu::getInstance()->isOptionChecked(MenuOption::DontCullOutOfViewMeshParts);
|
||||||
bool cullTooSmallMeshParts = !Menu::getInstance()->isOptionChecked(MenuOption::DontCullTooSmallMeshParts);
|
bool cullTooSmallMeshParts = !Menu::getInstance()->isOptionChecked(MenuOption::DontCullTooSmallMeshParts);
|
||||||
bool dontReduceMaterialSwitches = Menu::getInstance()->isOptionChecked(MenuOption::DontReduceMaterialSwitches);
|
bool dontReduceMaterialSwitches = Menu::getInstance()->isOptionChecked(MenuOption::DontReduceMaterialSwitches);
|
||||||
|
|
Loading…
Reference in a new issue