Bug Game Engine Runtime #38916
Labels
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
8 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#38916
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Windows 7 64bit
Nvidia GTX660Ti and GTX780
Blender Version
Broken: tested with Blender 2.67 and 2.70 beta
Worked: (optional): none
Short description of error
Once a level has been created into blender, I generate the independent .exe file with the addon "Game Engine Runtime": File > Export > Save As Game Engine Runtime >
When I launch the generated exe file, an important lag (slowing down) occurs when I move the mouse (from right to left and up and down) during the first minutes (on the complete scene) or the first seconds (on the attached scene). The framerate is not impacted: this is just the mouse, I think...
This slowing down does not exist when I play the scene directly in the BGE into Blender windows...So, I think that this is the runtime which is bugged...
Exact steps for others to reproduce the error
Open the blend file attached, and activate the Game addon.
Then, File > Export > Save As Game Engine Runtime > toto.exe
Copy and paste the 2 attached folders in the same folder as the .exe one
Launch the exe file, and see the lag during the first 5 seconds...
BUG_Game_Engine_Runtime.7z
Thanks in advance
Changed status to: 'Open'
Added subscriber: @remi.andreoletti
Added subscriber: @brita
Testing in Linux 64bits, current master.
I do not have a mouse slow down neither in the embedded player, standalone player (starting standalone from within blender) or bundled player (saving as executable).
However, I did have a 3-4 second waiting before everything loaded the very first time I started the bundled player.
I am not sure this is playing like it was intended to, I see a lot of textures in the blend file, that were not included in the zip. (I just see everything black with a spotlight).
If there are a lot of textures and sound being loaded, the waiting is normal and will be worst in less capable computers, I suggest a loading screen :-)
tl;dr - embedded, standalone and bundled is behaving the same for me. I do not have a mouse slowdown, however, the bundled player is taking some seconds to load (and I have no mouse until the window is displaying).
Added subscriber: @Moguri
The blenderplayer has to load textures from disk, but the embedded player can reuse textures that Blender has already loaded.
Thank you all for your comments. The loading of textures could be a good explanation for the slowing down. The original scene is more complex, with many textures, and take several minutes to make the slowing down disappear (instead of some seconds with the attached scene).
However, the PC I use is really powerful, and the textures used are dds files (which are really efficient for the loading). I have 39 Mo of DDS textures to load the complete scene...which is really correct.
Brita, you say:
I am not sure this is playing like it was intended to, I see a lot of textures in the blend file, that were not included in the zip. (I just see everything black with a spotlight).
If this is black, it means that you didn't copy the textures file in the .exe folder. Maybe the result will be different with the textures ?
Hi everybody,
Some news from this "bug":
I know now, how to reproduce it: in fact, this bug occurs only with NVidia cards. Not on ATI ones. This bug is not link to the python script, becaue I tested many scripts which control the mouse rotation (in a FPS).
Here is the python script which controls a "Cube" (the character, in fact), which is the parent of an empty Plain Axes (called "cameraTarget"), itself the Parent of the Camera:
This script allows to control the camera rotation with the mouse.
In fact, an equivalent script (but more complex !), developped by Riyuzakisan has the same issue, and this is really easy to test it:
download the .blend file (included in the zip file) at the following adress:
http://riyuzakisan.weebly.com/mousemove-script.html
Generate the exe file, and you will see, after some seconds, an awful slowing down during the mouse rotation...on Nvidia cards !
So, with that bug, impossible to do a FPS with the BGE..:-(
Any idea ?
Thanks in advance
Rémi
import bge
from bge import render
g=bge.logic
scene = g.getCurrentScene()
co = bge.logic.getCurrentController()
sensor
mouse = co.sensors["mousesensor"]
objects
Cube= scene.objects["Cube"]
cameraTarget= scene.objects["cameraTarget"]
mouse movement
movSpeed = 0.3
rotSpeed = (0.005, 0.005)
mouse look
x = int((render.getWindowWidth() / 2 - mouse.position[0]))
y = -int((render.getWindowHeight() / 2 - mouse.position[1]))
Cube.applyRotation((0 , 0, int(x) * rotSpeed- [x]), False)
cameraTarget.applyRotation((0, int(y) * rotSpeed- [x], 0), True)
render.setMousePosition(int(render.getWindowWidth() / 2), int(render.getWindowHeight() / 2))
I'm not sure what I'm looking at with the attached blendfile. If I try to run it, it is just mostly black. I tried adding a hemi, and it looked like the player just falls through the level. There are also some Python errors in the console.
Hi Moguri,
Instead of using my scene (with potential issues with textures), prefers the following blend file:
http://riyuzakisan.weebly.com/mousemove-script.html
and as I previously said, generate the exe file, and you will see, after some seconds, an awful slowing down during the mouse rotation...on Nvidia cards !...
apparently, as son as you try a FPS on the BGE, on a standalone exe, you have this issue. BUT, if you stay in the Blender window, you don't have the issue...
Okay, I can confirm the issue with the file from that site. I'm attaching the file here as well (License: CC-BY 3.0, Author: Riyuzakisan).
mousemove_2.7.zip
I'm not seeing the issue on Linux, so it seems like an issue with Ghost on Windows.
Hmm... strange, I can no longer reproduce it on Windows. I wonder if something was just hogging resources when I was testing last time?
Graphics: NVIDIA GeForce GT 425M
Windows OS: Windows 7 64bit
Linux OS: Arch Linux 64bit
Hello Moguri,
I do not know for Linux. For Windows, I saw your configuration which is pretty close from mine: I have a NVidia mobility card (GTX 670M), windows 7 64bit.
I could say that the slowing down is not systematic. Sometimes it occurs, sometimes, it does not occur (less frequent)...
Restart the PC, and relaunch...I didn't achieve to find the root causes, except that:
thanks
Added subscriber: @mahalin
No issues here on Arch Linux 64-bit with Intel HD4000 or GeForce 610M.
Added subscriber: @JorgeBernalMartinez
No issue here either.
Windows 7 64bits, i7-3770, 16GB RAM, Nvidia Quadro 2000
Added subscriber: @Pickledtezcat
When I run the above file I don't get any problem, but I have had a lot of issues with mouse position in the stand alone player at high resolutions.
The problem occurs when setting the position using bge.logic.mouse.position
It causes a skipping or locking of the mouse position.
I found it can be avoided by using:
However I don't know why this is so.
Added subscriber: @renaud.techer
Thanks i had this problem too. Fixed.
Added subscriber: @Blendify
Changed status from 'Open' to: 'Archived'
This task is being closed because the BGE has been removed in Blender 2.8.