Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
graphicsframework
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
einsteinathome
graphicsframework
Commits
6b630d24
Commit
6b630d24
authored
5 years ago
by
Oliver Behnke
Browse files
Options
Downloads
Patches
Plain Diff
Remove comments and superfluous statements
* Previously used FYI only * Defaults are better than explicit values
parent
7dd0a4f1
Branches
Branches containing commit
No related tags found
1 merge request
!1
Move macOS build to 64 bit
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/framework/WindowManager.cpp
+0
-13
0 additions, 13 deletions
src/framework/WindowManager.cpp
with
0 additions
and
13 deletions
src/framework/WindowManager.cpp
+
0
−
13
View file @
6b630d24
...
@@ -110,27 +110,15 @@ bool WindowManager::initialize(const int width, const int height, const int fram
...
@@ -110,27 +110,15 @@ bool WindowManager::initialize(const int width, const int height, const int fram
// }
// }
// minimum requirements
// minimum requirements
SDL_GL_SetAttribute
(
SDL_GL_RED_SIZE
,
1
);
SDL_GL_SetAttribute
(
SDL_GL_GREEN_SIZE
,
1
);
SDL_GL_SetAttribute
(
SDL_GL_BLUE_SIZE
,
1
);
SDL_GL_SetAttribute
(
SDL_GL_DOUBLEBUFFER
,
1
);
SDL_GL_SetAttribute
(
SDL_GL_DOUBLEBUFFER
,
1
);
SDL_GL_SetSwapInterval
(
1
);
SDL_GL_SetSwapInterval
(
1
);
// desired requirement for high quality mode
//FIXME: commented out right now as it interferes with the FSAA attributes below!)
// SDL_GL_SetAttribute(SDL_GL_ACCELERATED_VISUAL, 1);
if
(
m_BoincAdapter
->
graphicsQualitySetting
()
==
BOINCClientAdapter
::
HighGraphicsQualitySetting
)
{
if
(
m_BoincAdapter
->
graphicsQualitySetting
()
==
BOINCClientAdapter
::
HighGraphicsQualitySetting
)
{
// enable opt-in quality feature FSAA (4x)
// enable opt-in quality feature FSAA (4x)
SDL_GL_SetAttribute
(
SDL_GL_MULTISAMPLESAMPLES
,
4
);
SDL_GL_SetAttribute
(
SDL_GL_MULTISAMPLESAMPLES
,
4
);
SDL_GL_SetAttribute
(
SDL_GL_MULTISAMPLEBUFFERS
,
1
);
SDL_GL_SetAttribute
(
SDL_GL_MULTISAMPLEBUFFERS
,
1
);
}
}
// unused requirements
//SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE, 8);
//SDL_GL_SetAttribute(SDL_GL_BUFFER_SIZE, 32);
//SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24);
// we always start in windowed mode (starting in fullscreen fails with high CPU load!)
// we always start in windowed mode (starting in fullscreen fails with high CPU load!)
m_CurrentWidth
=
m_WindowedWidth
;
m_CurrentWidth
=
m_WindowedWidth
;
m_CurrentHeight
=
m_WindowedHeight
;
m_CurrentHeight
=
m_WindowedHeight
;
...
@@ -158,7 +146,6 @@ bool WindowManager::initialize(const int width, const int height, const int fram
...
@@ -158,7 +146,6 @@ bool WindowManager::initialize(const int width, const int height, const int fram
cerr
<<
"Disabling high quality features..."
<<
endl
;
cerr
<<
"Disabling high quality features..."
<<
endl
;
// disable features that demand acceleration
// disable features that demand acceleration
// SDL_GL_SetAttribute(SDL_GL_ACCELERATED_VISUAL, 0);
SDL_GL_SetAttribute
(
SDL_GL_MULTISAMPLESAMPLES
,
0
);
SDL_GL_SetAttribute
(
SDL_GL_MULTISAMPLESAMPLES
,
0
);
SDL_GL_SetAttribute
(
SDL_GL_MULTISAMPLEBUFFERS
,
0
);
SDL_GL_SetAttribute
(
SDL_GL_MULTISAMPLEBUFFERS
,
0
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment