lag

Actionscript 2 large tile-based maps creating lag

江枫思渺然 提交于 2019-12-01 23:44:54
I'm wondering what the best way to go about creating large, tile-based maps in flash with actionscript 2 would be. With my current code, any maps over 35x35 (1225 movieclips) start to lag. The maps are created from a simple multi-demensional array, eg. var map = [[95,23,25,23,16,25],[95,23,25,23,16,25],[95,23,25,23,16,25]]; The program simply creates a movieclip of a tile, goes to the appropriate frame and places the tile relative to the player's location. Each tile has one property, that is 'walkable' which is either true or false which determines if the player can walk on it or not. These

lag to get first non null value since the previous null value

感情迁移 提交于 2019-12-01 23:28:37
Below is an example of what I'm trying to achieve in a Redshift Database. I have a variable current_value and I want to create a new column value_desired that is: the same as current_value if the previous row is null equal to the last preceding non-null value if the previous row is non-null It sounds like an easy task but I haven't found a way to do it yet. row_numb current_value value_desired 1 2 3 47 47 4 5 45 45 6 7 8 42 42 9 41 42 10 40 42 11 39 42 12 38 42 13 14 36 36 15 16 17 33 33 18 32 33 I've tried with the LAG() function but I can only get the previous value (not the first in the

Extremely Laggy RecyclerView Performance

亡梦爱人 提交于 2019-12-01 16:46:43
I have a RecyclerView implementation inside of a ViewPager , and its performance is pretty horrible. Here's a video of the performance in question. I have two view types, and am using the ViewHolder pattern (so it's not inflation or finding views causing the issue). Here's the adapter. Here's the cardview.xml file <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:clipChildren="false" android:orientation="vertical" android:scrollbars="none"> <LinearLayout android:id="@+id/next" android:layout

Extremely Laggy RecyclerView Performance

不打扰是莪最后的温柔 提交于 2019-12-01 15:32:53
问题 I have a RecyclerView implementation inside of a ViewPager , and its performance is pretty horrible. Here's a video of the performance in question. I have two view types, and am using the ViewHolder pattern (so it's not inflation or finding views causing the issue). Here's the adapter. Here's the cardview.xml file <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:clipChildren="false"

Tkinter - Preload window?

前提是你 提交于 2019-11-30 21:20:54
I started building a python tkinter gui, the problem is, after adding many features to the gui, the loading started looking really ugly . When starting the mainloop, a blank window shows up for a few miniseconds before the widgets are loaded, the same happens with the other Toplevel windows ( except the ones with few static elements that don't need updates ). My question is Is there a way to 'preload' the window so that when I would call it, it would start smoothly? For example root = MyTkRoot() root.build_stuff_before_calling() root.mainloop() # Smooth without widget loading lag Part of my

Lag() with condition in sql server

旧街凉风 提交于 2019-11-30 17:48:31
i have a table like this: Number Price Type Date Time ------ ----- ---- ---------- --------- 23456 0,665 SV 2014/02/02 08:00:02 23457 1,3 EC 2014/02/02 07:50:45 23460 0,668 SV 2014/02/02 07:36:34 For each EC I need previous/next SV price. In this case, the query is simple. Select Lag(price, 1, price) over (order by date desc, time desc), Lead(price, 1, price) over (order by date desc, time desc) from ITEMS But, there are some special cases where two or more rows are EC type: Number Price Type Date Time ------ ----- ---- ---------- --------- 23456 0,665 SV 2014/02/02 08:00:02 23457 1,3 EC 2014

Trying to fix AVAudioPlayer lag on its initial use

核能气质少年 提交于 2019-11-30 15:22:02
This issue has shown up in several other question here on SO: Slow start for AVAudioPlayer the first time a sound is played Delay in playing sounds using AVAudioPlayer I've tried implementing the fixes suggested but none of them are solving my problem. My application presents the user with a grid of objects to touch, when an object is touched a sound is played. This works great except on the initial touch there is a delay of ~2 seconds. To get around this I initialize my audio player with a dummy aiff file: - (void)viewDidLoad{ NSString *soundFile = [Card loadCardSoundPath:@"dummy"];

google maps api v3 no smooth dragging

我的梦境 提交于 2019-11-30 09:44:05
I started implementing my software using maps api v3. Unfortunatelly i found out that v3 API has some serious issues which draws me back from bying a bussiness licence. My clients use monitors with HD resolution which is 1920x1080 and the map takes 90% of the screen space. Unfortunatelly here comes the problem i am talking about. When i click with the mouse on the map and start dragging it it is not smootly and it is really annoying. All the fun goes away. I tried some different scenarious using windows XP, windows 7 and Windows 8. The browsers i am working with are the latest versions of

google maps api v3 no smooth dragging

我是研究僧i 提交于 2019-11-29 14:48:10
问题 I started implementing my software using maps api v3. Unfortunatelly i found out that v3 API has some serious issues which draws me back from bying a bussiness licence. My clients use monitors with HD resolution which is 1920x1080 and the map takes 90% of the screen space. Unfortunatelly here comes the problem i am talking about. When i click with the mouse on the map and start dragging it it is not smootly and it is really annoying. All the fun goes away. I tried some different scenarious

CSS3 box-shadow causes scroll-lag (slow performance) on Safari 5.0.2?

和自甴很熟 提交于 2019-11-29 07:06:00
Hey there, this time I have a quite rare issue that's occurring only in Safari 5.0.2. When using CSS3's box-shadow parameter, Safari's performance is that bad, you can't even scroll down properly or interact as expected with the site . I have a <div class="blox"></div> which has an average size (960x320 pixels), and these are its relevant CSS settings: -moz-border-radius: 4px; /* FF1+ */ -webkit-border-radius: 4px; /* Saf3-4 */ border-radius: 4px; /* Opera 10.5, IE9, Saf5, Chrome */ -moz-box-shadow: inset 0px 0px 140px #dfe1e2; /* FF3.5+ */ -webkit-box-shadow: inset 0px 0px 140px #dfe1e2; /*