FontObjects produce long delay when characters are used first time #35159

Closed
opened 2013-04-30 13:57:01 +02:00 by Monster · 8 comments

%%%version 2.66 (sub 1), revision b'55075:55077'. b'Release'
build date: b'2013-03-06', b'17:41:59'
platform: b'Windows:64bit'

I noticed this issue for a while, but was not able to nail it down. This is because this only happens once after starting Blender/BGE.

When the game should display text with a lot of different characters. The game gets a long delay within the next frame.
With the attached file I get a delay of more then 15 seconds for 39 (different) characters. (As said only the first time I run the game after starting Blender).

I guess this might be because the different objects/textures/materials needs to be generated and cached before showing. But 15 seconds delay is really long. Please have a look if there is a way to speed this up (maybe with a different design).

Example:
Blender Game Engine Started
currentTime: 2013-04-30 13:54:28.925996
set long text with 39 characters
currentTime: 2013-04-30 13:54:44.389796

0:00:15.463800 is way to much time
Blender Game Engine Finished

tested with 2.65 and 2.63 with the same results.

Thanks
Monster%%%

%%%version 2.66 (sub 1), revision b'55075:55077'. b'Release' build date: b'2013-03-06', b'17:41:59' platform: b'Windows:64bit' I noticed this issue for a while, but was not able to nail it down. This is because this only happens once after starting Blender/BGE. When the game should display text with a lot of different characters. The game gets a long delay within the next frame. With the attached file I get a delay of more then 15 seconds for 39 (different) characters. (As said only the first time I run the game after starting Blender). I guess this might be because the different objects/textures/materials needs to be generated and cached before showing. But 15 seconds delay is really long. Please have a look if there is a way to speed this up (maybe with a different design). Example: Blender Game Engine Started currentTime: 2013-04-30 13:54:28.925996 set long text with 39 characters currentTime: 2013-04-30 13:54:44.389796 0:00:15.463800 is way to much time Blender Game Engine Finished tested with 2.65 and 2.63 with the same results. Thanks Monster%%%
Author

Changed status to: 'Open'

Changed status to: 'Open'

%%%From what I know, yes, the texture needs to be generated when you first use the chars. However, testing it on my system, I could not produce the bad performance. This might be one of those GPU related bugs. What graphic hardware are you running on?

Can you adjust the resolution of the text and see if that helps? i.e.:

def setLongText(controller):

  longText = "abcdefghijklmnopqrstuovxyzäöüß?.,;:-+*/"
  controller.owner.resolution = 0.2
  controller.owner.text = longText
  print("set long text with {} characters".format(len(longText)))

%%%

%%%From what I know, yes, the texture needs to be generated when you first use the chars. However, testing it on my system, I could not produce the bad performance. This might be one of those GPU related bugs. What graphic hardware are you running on? Can you adjust the resolution of the text and see if that helps? i.e.: def setLongText(controller): ``` longText = "abcdefghijklmnopqrstuovxyzäöüß?.,;:-+*/" controller.owner.resolution = 0.2 controller.owner.text = longText print("set long text with {} characters".format(len(longText))) ``` %%%
Member

Added subscriber: @JorgeBernalMartinez

Added subscriber: @JorgeBernalMartinez
Member

Hi Monster,

Currently with blender 2.74 I didn't obtain bad performance either. See the following screenshoot:

font.png

Could you check it again?

Thanks.

Hi Monster, Currently with blender 2.74 I didn't obtain bad performance either. See the following screenshoot: ![font.png](https://archive.blender.org/developer/F197487/font.png) Could you check it again? Thanks.

Added subscriber: @panzergame

Added subscriber: @panzergame

Can't reproduce the bug, : 0:00:00.012916.
@monster : Can you retest with 2.76 ?

Can't reproduce the bug, : 0:00:00.012916. @monster : Can you retest with 2.76 ?
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Jorge Bernal self-assigned this 2015-10-31 20:04:18 +01:00
Member

Closing the report as no feedback received and it seems that it is not a problem now.

Thanks for reporting.

Closing the report as no feedback received and it seems that it is not a problem now. Thanks for reporting.
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#35159
No description provided.