Extreme lag on client when posting

Hello,
I'm trying to create a realtime multiplayer game by using Flash Player 10.1's new P2P capabilities. However, I'm having some problems.
To make it realtime I need to send updates of player positions very often. Right now I do something like this every frame:
var user_info:ByteArray = new ByteArray ();
user_info.writeByte (USER_POSITION); //type
user_info.writeUnsignedInt (player_id); //id
user_info.writeShort (int(player.x)); //x
user_info.writeShort (int(player.y)); //y
user_info.writeUnsignedInt (Connect.getMsgSeq ()); //unique msg id
group.post (user_info);
Now, the problem I'm having is that when I have this code running every frame my application lags a lot, even if no one else is connected to the group. If I simply comment out the line "group.post (user_info);" then the lag disappears (but then it doesn't send anything of course).
Surely there should be a way to send a simple message like that without slowing down my application. Have I missed something?
I'm thankful for any help or insight.

Get rid of ENTER_FRAME! You simply cannot send 30 notifications out in a second continously. Better use a timer (which - in best case - knows about the current latency of the client and adjusts itself) which sends out a status every 10ms. Basically you cannot get under this time in any case and it's much, much, much more performant.
Besides I wouldn't always set up a new ByteArray. Instead try just clearing & re-writing it.

Similar Messages

  • Airport Extreme: PEAP authentication failure when NAT is enabled

    Setup: Airport Extreme firmware 5.6, Windows Admin Utility 5.2
    Airport's WAN port connected to an internal network with Windows 2003 IAS RADIUS server; Airport's LAN port disconnected.
    Windows XP client (using Microsoft zero-configuration client)
    client and server set up to use PEAP authentication
    If I set up the Airport in bridge mode (uncheck the "Distribute IP Addresses" box in the Network setup tab), the client can authenticate correctly and can obtain an IP address from a DHCP server on my internal network.
    If I check the "Distribute IP Addresses" box, select "Share a single address with DHCP & NAT" and the 192.168.1.1/24 address range, the client can no longer authenticate. I haven't changed anything else on either the Airport or the RADIUS server.
    Network traces taken on the wired (WAN) and wireless side of the Airport show that the first few exchanges of the EAP handshake go through fine, but the server's reply to the client's "TLS Hello" message are being blocked by the Airport. Up to that point, I don't see any significant difference between the exchanges with NAT enabled or disabled; it's just that the Airport passes the server's message to the client correctly when NAT is off and blocks it when NAT is on.
    Airport Extreme   Windows XP  

    My mistake - posted to the wrong forum! I've restarted the thread on the Airport Extreme forum.

  • Pavilion 300-030 extreme lag

    Experiencing extreme lags during simple operations like opening an email or opening up the Chrome browser. I upgraded my memory with a Crucial 8GB single DDR3 1600MT/s notebook memory and it shows in my system as 12.0GB. Is there something I am missing or doing wrong? Thanks in advance

    Aloha Dean,Thank you for responding. I use an email client called Thunderbird by Mozilla and I have never had lag before with my tablet, home and work stations by for some reason the Pavilion 300-030 lags all the time. When I click on a different email or when I save an email to a folder the hourglass pops along with "Not responding" .Our internet at the office is decent and never had a problem with speed. Opening new pages sometimes take twice as long as normal.What do you think?John

  • EXTREME lag after installing Windows 8.1 pro via / Bootcamp assistant

    Hey guys, today I've literally been through **** trying to get this game working on my MacBook Pro.
    I've basically gone out & bought Windows 8, created a partition on my hardrive (of my MacBook Pro) & installed it into that partition using Apples 'Bootcamp assistant'. After installing the operating system I also loaded the drivers which were given to me by Apples 'Bootcamp assistant'.
    I now have the game on the Windows 8 (on my MacBook) which is a £2000 machine... I have got to the menu & experienced extreme lag to the point where I've even managed to turn down all my video settings & it is still lagging a lot despite my high-end computer hardware - here is my computer http://store.apple.c...B/A&step=config#
    I have tried running the game on this website http://www.systemrequirementslab.com & everything is great but it says I don't have the required 512MB of video RAM... It says I have 256MB. This is complete ********? I believe I have 2GB of GDDR5 video RAM. It also says that my graphics card is called 'Microsoft Basic Display Adapter'. So I believe this is where the issue lies. My theory is for some reason one of the drivers which I have installed which was given to me by the Bootcamp assistant is messing with me.
    This is literally all the information I can possibly provide, does anybody know how I could fix this?
    Thanks you!

    If the underlying hardware was exposed correctly by the CSM-BIOS when Windows was installed, your Device Manager should look like this.
    If the Windows installer did not see any devices as your screen indicates, Windows will use generic software-based drivers which will be very slow and painful.
    Rudegar ... I think the Windows installer did not see  any hardware, otherwise there should be HW with yellow triangles with exclamation marks.

  • Error when posting to WebService on XI system using Soap

    Hi,
    We have a scenario where we have a 3rd party system posting to the XI webservice.  The sender Soap adapter is configured for HTTPS without client authentication.
    I am using soapui software to test the connection.  Before changes were made to the configuration for SSL, we were able to post to XI using the http url.  After the changes were made, when posting using the http url no response is received and no message is produced in XI.  Also, when we change the url to https and using the port 50001 to post the SOAP message we get the following error:
    The following error occurred while parsing the HTTP request: com.sap.engine.services.httpserver.exceptions.ParseException: Incorrect request line: [CONNECT eagnmnsu39e:50001 HTTP/1.1]..
    Can anyone provide some insight to the issue?
    We are using a user ID with the correct security profile
    Thanks.

    http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/index.jsp?topic=/com.ibm.etools.mft.doc/ac04595_.htm
    Hope this link will help you.
    BR,
    Alok

  • Modifying the cost center when posting an MM invoice

    Hi All,
    my client wants to change the Cost Center assignment field when posting an invoice coming from MM process (PR>PO>SES).   I'm now using transaction MIRO to make some test and I see the field is 'not modifiable'. I tried to see if i could sort it out from trx.OME9 but i am not really sure how and if i am in the right way. Somebody can please give any clear advices for this requirment?      Thanks so much in advance,
    regards
    Livio

    HI,
    Just to make sure that there is no confusion here, the changeable indicators DO work if you have a valuated receipt, you CAN change  the assignment, but the postings have already been made and will not be affected by the change (it will simply affect further receipts after the change) and so Shoaib is right in some respects because it is not changing the posting, but the fields can be changed to affect future receipts, even after a valuated GR. (I have done this many times).
    But I think that the problem with this query is the fact that it is a service PO with the item category D. There is additional validation involved due to the complex data of a service PO.
    So I would suggest that you try to change it in the service entry sheet or PO (you may have to reverse the SES first.
    Steve B

  • Extreme lag in CS5

    I'm experiencing extreme lag while using photoshop lately. I'm running CS5 on a Mac OS X 10.5.8. My computer is about three years old but the hard drive was replaced about 6 months ago.
    Basically what happens is that the program runs incredibly slow especially when opening files and saving files, no matter what the size. I have ample space on my hard drive and ps is not using the scratch disk for RAM or anything. I've also uninstalled or unchecked a variety of features that I don't use. This only started happening two days ago. I've installed all updates for Mac and PS but nothing has changed. I'm an art student so I'm using PS all the time, so it's become a real pain. Thanks for the help.

    These two documents will help with plug-in problems:
    Troubleshoot plug-ins (Photoshop CS5 and CS4): http://adobe.ly/PSPlugIn
    Sluggish, poor performance | Photoshop CS5 | Mac OS: http://kb2.adobe.com/cps/889/cpsid_88974.html

  • Extreme Lag/Crash on New iPad iTunes App

    when browsing the store, i get extreme lag on both page updating, touch ( when scrolling on screen, no response), and in a couple cases the iTunes App just flat out crashes to home screen
    after waiting for a  time it does show stuff, but missing alot of images/parts of page
    like http://db.tt/lFpa2uvK
    and
    http://db.tt/wZYBbIa7
    it does NOT do then when in the App Store, or any other app
    crash logs show a couple Low Memory's with only "MobileStore " as largest process ( only app running )
    as well as a couple crash's under " com.apple.Mobilestore failed to resume in time " and
    MobileStore[282] has active assertions beyond permitted time
         <SBProcessAssertion: 0x12282b30> identifier : suspending process: MobileStore[282]
    permittedBackgroundDuration: 10.000000 reason: suspend owner pid:16 preventSuspend
    preventthrottledownCPU preventthrottleDownUI
    alapsed total CPU time (seconds): 13.240 9user 13.240, system 0.000). 66% CPU
    elapsed application SPU time (seconds): 9.503, 47% CPU

    same with my iTouch 4
    I have been getting many LowMemory and MobileStore crashes since 2012-04-29
    I updated to iOS 5.1.1 today hoping it would fix the problem but it is just the same.
    I have 2.3GB spare.
    most problems seem to be with podcast pages with multiple entries.
    mobileStore has been painfully slow since they added the DOWNLOADED symbols.
    I had difficulty getting iTunes to see the iTouch, even after updating to the latest version (10.6.1.7)
    since 5.1 I have normally had to stop and start apple services before seeing the iTouch in iTunes.
    Message was edited by: ManMulletMadMalletMillets

  • Extreme lag during song deletion

    I am getting some extreme lag, (a few minutes for each song) when I delete music in iTunes.
    I've read up on it a bit, and I'm thinking it's because of my library size - which is about 15,000 songs after adding all of my older music - now totals about 82GB. I've restarted iTunes, rebooted, and checked most everything. I don't know what else to do, iTunes is becoming almost unusable; even other small operations are slower than ever.
    I just wanna know if there's anything I could try, or if it's just a fault on iTunes's part.
    S'never happened to me before.
    Thanks in advance.

    A couple of thoughts, you quite a large library which is always going to be a bit slower than a small one. Is it on an external drive or network that might be slowing things down. This is particularly and issue if the library database files themselves are on the external resource.
    Do you have a lot of smart playlists with live updating, that can be a significant overhead.
    The other thing I wonder about is virus checking, it might be worth briefly disabling virus checking to see if that makes a difference. If it does try excluding iTunes Library.itl and iTunes Music Library.xml from virus checking They are in your iTunes folder in Music.

  • How to detect ipaddress client when client computer is turn on

    I have problem :
    ** how to detect ipaddress from client when the computer client is turn on???
    i have assumption : server ipaddress 192.168.2.21
    client_1 ipaddress 192.168.2.26
    client_2 ipaddress 192.168.2.27
    anyone want to help me,please give me the sample program.
    thanks before.

    cross post
    http://forum.java.sun.com/thread.jspa?threadID=786950&messageID=4471598#4471598

  • How do you use Airport extreme at hotels etc, when traveling? I can plug my computer into the Airport with my ethernet but how does Airport pickup signal?

    How do you use Airport extreme at hotels etc, when traveling? I can plug my computer into the Airport with my ethernet but how does Airport pickup signal? What equipment & devices do I need to travel with to make this possible?

    You may mean the AirPort Express.....not AirPort Extreme.....as the Express is a popular travel router.
    The whole idea behind using this device is that the hotel must provide an Ethernet jack in the hotel room. Then you connect the AirPort Express to the Ethernet jack with an Ethernet cable and configure it to provide your own wireless network in the room. You still have to agree to terms, pay the fees, etc.
    The problem with this approach is that it is getting very difficult to find hotels in North America that prrovide an Ethernet jack....most have moved to wireless networks and the others are not far behind.
    So, if the hotel is already providing a wireless signal, the AirPort Express is of no use in that situation.
    If you normally stay at the same hotels, and know that they provide Ethernet ports, an AirPort Express might make sense in terms of convenience.

  • Validation when posting a document using T. Code FB50 or F-02

    Dear Experts
    Please let me know on how to validate when posting a Cross Company Transaction using T. Codes FB50 or F-02.  The requirement is to restrict Branches (each Branch is a Company Code in SAP) to post any Cross Company documents by selecting HO Company Code in Line Item, system has to stop the User by giving Error Message.
    We can't control this using User level Authorizations because, here the Authorization is provided to the Users to post the Transactions using T. Codes FB50 and F-02.
    To restrict this, I created a Validation as below:
    Prerequisite:
    BKPF-TCODE = 'FB50' OR BKPF-TCODE = 'F-02' AND
    BKPF-BUKRS = 'Br. Company Code' AND
    BSEG-BUKRS = 'HO Company Code'
    Check:
    FALSE
    Message:
    You Can't post Cross Company Transactions using T.Code FB50 or F-02
    And I activated the above Validation in OB28 for HO and Branch Company Codes.  But the Validation is not working properly.  Can anybody help me on how to proceed further in this regard please.

    Hi,
    I haven't tried to use a transaction code for Validation purpose. Instead, I have used document type as prerequisite and then check:
    BKPF-BUKRS = 'Br. Company Code' AND
    BSEG-BUKRS = 'HO Company Code'
    If the condition is met, it displays an error (per the message in validation) while completing the line item details on posting a document.
    Please let me know if that helps. If not, I can try to replicate your scenario and let you know if there is anything missing.
    Thanks,
    Ashish

  • Dump error when posting through F-02.

    Greetings everyone,
    When posting G/L act through F-02 we are facing a dump error in QUALITY system and in DEVELOPMENT we are able to post succesfully.
    From my primary analysis one standard program is calling and that program has syntax error.
    When i checked that program it is saved in local object and generated automaticaly when some thing done is FICO.
    Generated Program is Module pool program :GBTV6FI0
    Description of that program is below
    Generated by report RGUGBR01.
    Generated code used by validations substitutions and rules.
    !! Do not manually change or transport !!
    For reference please find the dump below
        Error in the ABAP Application Program
        The current ABAP program "SAPLGBL5" had to be terminated because
        come across a statement that unfortunately cannot be executed.
        The following syntax error occurred in program "GBTV6FI0 " in in
         " in
        line 519:
        "FORM "SEND_CMPLX_DATA_015" does not exist"
        The include has been created and last changed by:
        Created by: "DDIC "
        Last changed by: "****"
        Error in the ABAP Application Program
        The current ABAP program "SAPLGBL5" had to be terminated because
        come across a statement that unfortunately cannot be executed.
    Can any one please suggest me how to resolve this issue.
    Thanks in Advance.

    This looks like you have not transported the code to quality system. This code seems to have been generated when validation, substitution and rules have been defined and is missing in quality system (not transported ?)
    Find the form send_cmplx_data_015 in development system and check the version. This is the transport that still needs to be transported to quality system.
    I now see that you say it has been saved as local object. In that case assign it to a package and transport in SE80.
    And now I see the answer of Klaus, follow the instructions in the note he has supplied first. It seems that note is exactly describing your problem.  :-)

  • Error when posting a SOAP request

    Hi all,
    Facing error when posting the SOAP request and after entering the Server Username and password giving error that http not found and url
    The URL i follow is http://<hostname>:<port>/XISOAPAdapter/MessageServlet?version=7.0&channel=:BusinessSystem:PI_SOAP_CC
    can any one of you tell me in place of XISOAPAdapter what should i place?
    Please help me to post the SOAP request to PI server.
    Thanks in advance ,
    Manohar.

    Hi ,
    copy the same URL  (Endpoint that you had given while generating wsdl file) to the browser and chek the status. ( http://host:port/XISOAPAdapter/MessageServlet?channel=party:service:channel)
    See the below URL for the same i.e. SOAP adapter...http://help.sap.com/saphelp_nw04/helpdata/en/fc/5ad93f130f9215e10000000a155106/content.htm
    You should get response something like this '
    Message Servlet is in Status OK
    Status information:
    Servlet com.sap.aii.af.mp.soap.web.MessageServlet (Version $Id: //tc/aii/30_REL/src/_adapters/_soap/java/com/sap/aii/af/mp/soap/web/MessageServlet.java#15 $) bound to /MessageServlet
    Classname ModuleProcessor: null
    Lookupname for localModuleProcessorLookupName: localejbs/ModuleProcessorBean
    Lookupname for remoteModuleProcessorLookupName: null
    ModuleProcessorClass not instantiated
    ModuleProcessorLocal is Instance of com.sap.aii.af.mp.processor.ModuleProcessorLocalLocalObjectImpl0_0
    ModuleProcessorRemote not instantiated
    This  is make sure that webservice endpoint is given correctly. Don't forget to give username and password for connecting to XI server. user should xiappluser .
    Ranjeet Singh.

  • Error message when posting invoice : Day-end closing not defined

    Hi,
    In our training environment we migrated from FAGLFLEXT to FMGLFLEXT and activated fund management.
    Now when posting an invoice the system provides an error message: "FQ252 Day end closing not defined".
    There is no configuration related to F845 but we are prevented from posting the document due to this error message.
    Any idea of where this could come from and of what need to be done to prevent this from happening?
    Rgds
    Sophie

    Hi Sophie,
    Can you check if you have entries in either PSO43 or PSO43USER tables (can be accessed via F8O2 transaction)?
    Regards,
    Eli

Maybe you are looking for

  • Why do I need Quick time 7 and Quicktime 10 ?

    I have just migrated from iMac5 (2.16 GHz) Mac OS 10.4.11 Quicktime 7.6.4 to a new imac 3.06 Mac OS 10.6.2 Quicktime 10.0. Some of my quicktime files play ok but others prompt me to download quicktime version 7. Why do I need to do this ? (There seem

  • How can I download an older version of kindle for my iPad 1? Hellllpppp.

    Arrrrrrrgh. How can I download an older ver of kindle for my iPad 1.  It's not in my cloud (as I never used it before) and the current version needs ios6 to work. iPad 1 can only go to ios5...  Same for iBooks .....

  • Connect my iMac to my macbook

    I have a macbook (aluminum, but not a pro), what is the best way to transfer my iPhoto and iTunes between the two?

  • Metadata Best Practice: Subtotals of ICP Accounts

    Say I have three accounts (A, B, C) and C is the subtotal of A and B. A and B are both listed as IsICP "Y". Should my subtotal account C be listed as IsICP "Y" or "N"? Should all subotals further up the chain be IsICP "Y" or "N"? The reason I am aski

  • Installing NW 7.01 ABAP Trial and NW CE 7.1 Trial on same machine?

    Hi all, I have downloaded and installed "SAP NetWeaver 7.01 ABAP Trial Version" (https://www.sdn.sap.com/irj/scn/downloads?rid=/library/uuid/80fd9a0a-e306-2a10-c896-b84c77c13ed2) successfully. Now I would like to install "EHP1 for SAP NetWeaver Compo