Please login or register.

Login with username, password and session length
Advanced search  

News:

Forum rules - please read before posting, it can save you a lot of time.

Author Topic: Lags  (Read 3081 times)

0 Members and 1 Guest are viewing this topic.

Krosad

  • Anate Studio
  • Occasional poster
  • **
  • Karma: 2
  • Offline Offline
  • Gender: Male
  • Posts: 97
  • anatestudio.com
    • View Profile
    • Anate Studio Web site
Lags
« on: June 16, 2013, 07:17:33 PM »

Hello!

I have got a problem with actor.PlayAnimAsync. Everytime when actor.PlayAnimAsync calling, game is laging.
Is there a possibility to load animation before it runs?
Logged

eborr

  • Regular poster
  • ***
  • Karma: 4
  • Offline Offline
  • Posts: 196
    • View Profile
Re: Lags
« Reply #1 on: June 17, 2013, 09:48:04 AM »

yes - you can get the animation to load when the scene loads, I don't have WME in front of me so I cannot tell you precisely where you set this up
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Lags
« Reply #2 on: June 17, 2013, 05:37:57 PM »

Animations ARE loaded before they are played, unless the "Streaming" check-box is checked in SpriteEdit.
If you want to pre-cache the animation in the scene, just create a hidden scene entity and attach the animation to it.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave
 

Page created in 0.048 seconds with 20 queries.