lag

Php - Connecting to remote database very slow

I have a new VPS server, and I'm trying to get it to connect to another server at the same ISP. When I connect via mysql's command line tool, the connection is very fast. When I use PHP to connect to the remote DB, the connection time may take up to 5 seconds. Queries after this are executed quickly. This is not limited to mysql, usi...

How do I fix shocking/lagging movement in this ajax based multiplayer example?

EDIT: important, examples must be used in firefox 3+ due to html5 elements. Hi there, I'm trying to find out more about the potential of AJAX in a browser based multiplayer game. To do so, I'm testing out movement with AJAX and a space shuttle as a character. This space shuttle is rendered with canvas (html5). My first version is read...

How to deal with delays on telnet connection programmatically?

Hi all, I utilize TcpClient class to implement a telnet connection. What I don't know is how to determine the end of response. It seems that once DataAvailable property is true, I read the data from Stream and DataAvailable is then temporarily set to false while buffer is being filled with another chunk of data but I think is all read an...

decreasing sifr render time

I'm using sifr for a few items on this page: http://blueprint.staging.dante-studios.com/public/templates/home.php unfortunately it seems that the rendering is very slow, does anyone have any idea of how to: a) speed up the rendering process b) hide all "to be sifr'd" items until all of them are ready? ...

lag in apply statement doesn't work in R

I'm trying to "apply" a function that does "lag"s on zoo objects in R. The function works correctly if I pass a single zoo vector - it applys the lag and everything works. However, if I "apply( data, 1, function )" then the lag doesn't work. There is no error, just the equivalent of a zero lag. This is also the case with a simple "ap...

R lag over missing data

Is there a variant of lag somewhere that keeps NAs in position? I want to compute returns of price data where data could be missing. Col 1 is the price data Col 2 is the lag of price Col 3 shows p - lag(p) - the return from 99 to 104 is effectively missed, so the path length of the computed returns will differ from the true. Col 4 shows...

iPhone application lags after launching and dismissing MFMailComposeViewController

Hello, I have an application that uses a table view controller to display some items, after clicking on one of those items you may select to email this item. Once that happens I use the code provided by apple "MailComposer", and send the mail. However after this the scrolling in the table view is not as smooth as before. I checked wit...

Visual Studio Freezing On Opening Project

Hi, My Visual Studio seems to be freezing/lagging when I open a existing project. I have added NHibernate framework into my code and it seems to lag my computer (at least that's what I think). When I open other projects, I do not lag or freeze at all. The freeze is about 3- seconds to a minute, then it will open my project and it will j...

Visual Studio Using Excessive amount of Ram

Hi, My visual studio is using 90% of the total Ram I have (4 gigs) and it is freezing my visual studio also. Is there any way to make this more efficient and make my visual studio go faster? It does this when i open a existing project or save a certain file. ...

Eclipse (Aptana) Typing Lag

Hello SO, I've been using Aptana for some time now, and as of recent I've been dealing with files that are really, really big (500+ lines of code, which is huge for me, being a novice developer). Whenever I deal with smaller files, I get that weird sensation that I'm "in front of" what's typing, but now I'm quite sure of it--there is a s...

DataGridView lags for a second with large data updates

I have a DataGridView with about 400 rows and 10 columns. When the user first displays this table, it receives all of the data from the server and populates the table. The DGV uses a DataTable as it's data source, and when updating the DataTable I use row.BeginEdit/EndEdit and acceptChanges, but when the View itself is updated it lags ...

CSS - :hover is slow/laggy in IE7

This is really strange. I've got this site where I have a list menu with a simple :hover effect on each item in the menu. http://w3box.com/mat/ In Firefox it works just fine. But i IE7 atleast there's a lag. I haven't tested it in IE8 but my guess is that it's there as well. Now, I've been trying out veriations to the code to see wh...

Asynchronous winsock server wrapper, CPU lagging - C++.

Hello! I am trying to write a Server application wrapper, as I would with any application and I've searched for over a week for a at least decent guide or tutorial on asynchronous sockets( this wrapper has to be asynchronous ) and so far what i could do is this: #ifndef _SERVER_H #define _SERVER_H #include "asynserv.h" // header file w...

PHP - MySQL - Select runs indefinitely

I have three tables listings: id, pid, beds, baths, etc, etc, etc, db locations: id, pid, zip, lat, lon, etc, etc, etc, db images id, pid, height, width, raw, etc, etc, db id, pid & db are indexed. db just references the mls provider a particular item came from. in images the raw column holds raw image data there are about 15k rows i...

Objective C sound lagging when multiple repeat

Hi, i'm coding in simple game where i move a square which performs a sound effect each time the square's moving. (like a walking sound) Problem is playing the sound effect cause a display refresh lag. As if it was too much performance for the engine. I was asking if there's a way to properly play the repeatitive but not continuously sou...

NSTimer Lag - iPhone SDK

Hello everyone, I made a game that uses many timers throughout the code. However the timer has to deal with many tasks in such a small amount of time which leads to the problem where there is lag in my game. For example, my timer runs at an interval of (0.05) and it needs to draw and update many of the images on the screen. Is there any...

.NET Remoting slows down when internet connection starts up

I have been using .net remoting with client and server on my dev machine, and everything was fine. And then I've located the server on the other machine, connected with my through a 100-Mbit LAN. It has a VPN connection, allowing it to connect to the internet. Whenever a VPN connection is started, .NET remoting gives out huge lag for ev...

Why is the app lagging when i "scroll"?

I am developing a "doodle jump" like game and i have 5 platforms on the screen on at a time. there are two background UIImageViews. I have the "scrollUp" function called whenever the player is in the top 3/4's of the screen. when the backgrounds are in view, the game slows down and lags, when the backgrounds are out of view (have scolle...

DOS ASCII Animation Lagging without constant input, Turbo C compiled

Here's an oddity from the past! I'm writing an ASCII Pong game for the command prompt (Yes yes oldschool) and I'm writing to the video memory directly (Add. 0xB8000000) so I know I'm rendering quickly (As opposed to gotoxy and then printf rendering) My code works fine, the code compiles fine under Turbo C++ V1.01 BUT the animation lags...

Flash Application Slows Down [removeChild]

Hi everyone, I have a problem with my flash application because after a while that it is running, it eventually starts to slow down. My application involves something that needs to be replicated with the addChild() method. I've read some info on the internet which states that the cause of the slowing down or the lag in the application i...