Standalone Player switches not working #32360

Closed
opened 2012-08-18 21:14:11 +02:00 by Thomas Szepe · 13 comments
Member

Category: UI/Interface

%%%Standalone player switches debug droperties, show framerate and quad-buffer are not working.%%%

**Category**: UI/Interface %%%Standalone player switches debug droperties, show framerate and quad-buffer are not working.%%%
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'

%%%The following works as expected for me:
blenderplayer.exe -g show_properties = 1 -g show_framerate = 1 test.blend

I don't know about quad-buffer since I don't have a card that supports it. However, I do know it can be a little tricky to get going.%%%

%%%The following works as expected for me: blenderplayer.exe -g show_properties = 1 -g show_framerate = 1 test.blend I don't know about quad-buffer since I don't have a card that supports it. However, I do know it can be a little tricky to get going.%%%

%%%quadbuffer is supposed to be working, but it works only in blenderplayer and it requires fullscreen.%%%

%%%quadbuffer is supposed to be working, but it works only in blenderplayer and it requires fullscreen.%%%
Author
Member

%%%@ Mitchell.
You misunderstood me. I know that the command line parameters are working.
But I meant when I start the blenderplayer from the new UI button (blue in the screenshot) in blender.

Look at the attached screenshot. The green switches are working, the red one not.

@ Dalai.
On my PC (Quadro FX 3700M) quad-buffer it working also in windowed mode.%%%

%%%@ Mitchell. You misunderstood me. I know that the command line parameters are working. But I meant when I start the blenderplayer from the new UI button (blue in the screenshot) in blender. Look at the attached screenshot. The green switches are working, the red one not. @ Dalai. On my PC (Quadro FX 3700M) quad-buffer it working also in windowed mode.%%%
Author
Member

%%%The "Quad-Buffer" is working since Mitchell Stokes patch r49998 [#32361] Blenderplayer quad-buffer maximum 100Hz Fps

I made a patch for the "Debug Properties", "Framerate and Profile" and "Deprecation Warnings" switches.
Because of the bug in the profile ([#32459] Profile in blenderplayer displays wrong values.) I made two patches.

%%%

%%%The "Quad-Buffer" is working since Mitchell Stokes patch r49998 [#32361] Blenderplayer quad-buffer maximum 100Hz Fps I made a patch for the "Debug Properties", "Framerate and Profile" and "Deprecation Warnings" switches. Because of the bug in the profile ([#32459] Profile in blenderplayer displays wrong values.) I made two patches. %%%

%%%Hi, the patch doesn't change anything here (aka it doesn't seem to be working).
and why did you remove m_ketsjiengine->SetTimingDisplay(frameRate, false, false); ?

Also, when creating a patch please do it from blender base source dir (instead of source/gameengine/GamePlayer/ghost in this case)
And having two patches confused me a bit. Ultimately the only patch you would like to apply is the Player Switches, right?

/tested on OSX%%%

%%%Hi, the patch doesn't change anything here (aka it doesn't seem to be working). and why did you remove m_ketsjiengine->SetTimingDisplay(frameRate, false, false); ? Also, when creating a patch please do it from blender base source dir (instead of source/gameengine/GamePlayer/ghost in this case) And having two patches confused me a bit. Ultimately the only patch you would like to apply is the Player Switches, right? /tested on OSX%%%

%%%I gave another look at the patch and I don't think this is the best approach.
I think this fits better if implemented in the python file that launches the blenderplayer instead of the GHOST code.%%%

%%%I gave another look at the patch and I don't think this is the best approach. I think this fits better if implemented in the python file that launches the blenderplayer instead of the GHOST code.%%%
Author
Member

%%%The patch is working on my Windows XP 32 bit system.
I have not fully understand the whole blender code yet.
At the moment I don't really understand for what the ghost files are for and why there are a similar code is in the BL_KetsjiEmbedStart.cpp.
I don't know but maybe OSX we have to change the BL_KetsjiEmbedStart.cpp to (line 268 to 277) to.

I removed the m_ketsjiengine->SetTimingDisplay(frameRate, false, false); method, because I found it two times in the GPG_Application.cpp.
line 635 m_ketsjiengine->SetTimingDisplay(frameRate, false, false);
line 645 m_ketsjiengine->SetTimingDisplay(frameRate, profile, properties);
That must be a fault in the original code. So I removed the unnecessary line 635 from the code.

I created the patch not from the blender base because I have made some other changes in the source code and I want to generate a patch from the ghost.
But in future I will make a separate copy from the blender source for each patch. Then I can make a patch from the blender base.

I made two patches because the profile values are not displaying correct on my PC (as I described above). The second patch don't enable the profile values. But it seams that problem with the profile depends on my PC. So the "Player switches.patch" is the right one.
I tried to made it working if we start the player from inside blender (start button) and if the file is started directly with the blenderplayer (no need to setup the command line parameter more).

I changed the GHOST because all other switches like fixed_framerate, show_physics, displaylists and restrictAnimFPS are also loaded in the ghost file in this way.

If we change python file instead of the GHOST code the switches are only working if we start the player from start button inside blender.
If you start the file direct with the blenderplayer the stored settings won’t have a affect and you must use the command line parameters.

I can try to make a patch for the python file instead of the GHOST code. But then I have to change also the GHOST code to. Because we should choose one way to do it and don't mix it up.

I personally like it more to load the saved settings from the file. Because on windows I can drag and drop the fie on the player an it starts with the saved setup. So I don't need to stat the player from the command window or write a batch file.
%%%

%%%The patch is working on my Windows XP 32 bit system. I have not fully understand the whole blender code yet. At the moment I don't really understand for what the ghost files are for and why there are a similar code is in the BL_KetsjiEmbedStart.cpp. I don't know but maybe OSX we have to change the BL_KetsjiEmbedStart.cpp to (line 268 to 277) to. I removed the m_ketsjiengine->SetTimingDisplay(frameRate, false, false); method, because I found it two times in the GPG_Application.cpp. line 635 m_ketsjiengine->SetTimingDisplay(frameRate, false, false); line 645 m_ketsjiengine->SetTimingDisplay(frameRate, profile, properties); That must be a fault in the original code. So I removed the unnecessary line 635 from the code. I created the patch not from the blender base because I have made some other changes in the source code and I want to generate a patch from the ghost. But in future I will make a separate copy from the blender source for each patch. Then I can make a patch from the blender base. I made two patches because the profile values are not displaying correct on my PC (as I described above). The second patch don't enable the profile values. But it seams that problem with the profile depends on my PC. So the "Player switches.patch" is the right one. I tried to made it working if we start the player from inside blender (start button) and if the file is started directly with the blenderplayer (no need to setup the command line parameter more). I changed the GHOST because all other switches like fixed_framerate, show_physics, displaylists and restrictAnimFPS are also loaded in the ghost file in this way. If we change python file instead of the GHOST code the switches are only working if we start the player from start button inside blender. If you start the file direct with the blenderplayer the stored settings won’t have a affect and you must use the command line parameters. I can try to make a patch for the python file instead of the GHOST code. But then I have to change also the GHOST code to. Because we should choose one way to do it and don't mix it up. I personally like it more to load the saved settings from the file. Because on windows I can drag and drop the fie on the player an it starts with the saved setup. So I don't need to stat the player from the command window or write a batch file. %%%
Member

%%%Changed the operator to use the command line switches based on UI settings in r5962.
The UI settings it considers are:

  • Framerate and Profile
  • Debug Properties
  • Deprecation Warnings

Is this sufficient to close this report?%%%

%%%Changed the operator to use the command line switches based on UI settings in r5962. The UI settings it considers are: * Framerate and Profile * Debug Properties * Deprecation Warnings Is this sufficient to close this report?%%%
Author
Member

%%%The patch is working.

But now the operation of the new switches are switches is different to the others.

Example:
Framerate and Profile
%%%

%%%The patch is working. But now the operation of the new switches are switches is different to the others. Example: Framerate and Profile %%%
Author
Member

%%%The patch is working.

But now the operation of the new switches are switches is different to the others (as I described above).

Example:
Framerate and Profile = works with Standalone button = not working with blenderplayer.exe
Physics Visualisation = works with Standalone button = working with blenderplayer.exe

I really dislike when things are mixed up this way.There should only one way how it works. Because I think that will confuse some peoples.
If you relay like the Python way more then you should change the other switches like the Physics Visualisation to.

Sorry for the double post, but using the TAB button sent the message before I had finished my post%%%

%%%The patch is working. But now the operation of the new switches are switches is different to the others (as I described above). Example: Framerate and Profile = works with Standalone button = not working with blenderplayer.exe Physics Visualisation = works with Standalone button = working with blenderplayer.exe I really dislike when things are mixed up this way.There should only one way how it works. Because I think that will confuse some peoples. If you relay like the Python way more then you should change the other switches like the Physics Visualisation to. Sorry for the double post, but using the TAB button sent the message before I had finished my post%%%
Member

%%%With regards to those switches not working when launching the player outside of player, that is currently working as intended. Some more discussion needs to take place, but the current idea is that the player is meant for releases, and not development. This means it ignores development options like framerate and profile unless you explicitly re-enable them. Obviously this idea has not applied universally as physics visualization could be considered as a development option.

Since this aspect of the BGE is still under discussion and could potentially change, I think it is best to leave it as is.%%%

%%%With regards to those switches not working when launching the player outside of player, that is currently working as intended. Some more discussion needs to take place, but the current idea is that the player is meant for releases, and not development. This means it ignores development options like framerate and profile unless you explicitly re-enable them. Obviously this idea has not applied universally as physics visualization could be considered as a development option. Since this aspect of the BGE is still under discussion and could potentially change, I think it is best to leave it as is.%%%

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#32360
No description provided.