2008年11月25日

 

     2G内存,GF8600GT显示卡,但玩游戏FFOW(战火之源)时好卡,声音也断断续续,后装软件Fraps2.9.6汉化版,在游戏中测试得帧速率为10-13帧左右,所以好卡。将游戏设置中的显卡选项设置“极低”,都无太大改善。

     后发现XP系统中的虚拟内存设置为最小2000MB-最大2000MB,后将虚拟内存禁用,重启电脑后,进入游戏测试,帧速率已跃升为26-30帧左右,基本保持平均20帧左右,效果好明显,如果大家有同样问题的可以试下这个方法。

 

          

posted @ 2008-11-25 17:38 蓝箭GZ 阅读(216) | 评论 (1)编辑


2008年11月21日

posted @ 2008-11-21 12:32 蓝箭GZ 阅读(182) | 评论 (0)编辑

posted @ 2008-11-21 12:28 蓝箭GZ 阅读(52) | 评论 (0)编辑


2008年10月3日

共分三部分:

 

一、主程序:index_json.asp

 

<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>

<link rel="stylesheet" type="text/css" href="ext2/resources/css/ext-all.css" />
<link rel="stylesheet" type="text/css" href="ext2/examples/examples.css" />  
<script type="text/javascript" src="ext2/adapter/ext/ext-base.js"></script>  
<script type="text/javascript" src="ext2/ext-all.js"></script>
<script type="text/javascript" src="ext2/source/locale/ext-lang-zh_CN.js"></script>
 
<script type="text/javascript">
 

Ext.onReady(function(){  

//定义表头
var cm = new Ext.grid.ColumnModel([
    {header:'学号',dataIndex:'Stu_id'},
    {header:'姓名',dataIndex:'Stu_name'},
    {header:'性别',dataIndex:'Stu_sex'},
 {header:'生日',dataIndex:'Birthday'},
 {header:'电话',dataIndex:'Phone'},
    {header:'地址',dataIndex:'Address'},
 {header:'class_id',dataIndex:'Class_id'}
]);
cm.defaultSortable = true;


//从后台取由jsondata.asp动态生成的json格式数据
var proxy=new Ext.data.HttpProxy({url:'jsondata.asp'}); 
          var reader=new Ext.data.JsonReader(  
            {
  totalProperty:'mytotal',       //记录总数
        root:'root',  
        id:'Stu_id'          
            },[  
                {name: 'Stu_id'},  
                {name: 'Stu_name'},  
                {name: 'Stu_sex'},   
                {name: 'Birthday'},  
                {name: 'Phone'},  
                {name: 'Address'},             
                {name: 'Class_id'}             
            ])  
    //构建Store     
        var ds=new Ext.data.Store({  
          proxy:proxy,  
          reader:reader  
       });  
    //载入  
 
ds.load({params:{start:0,limit:15}}); //向后以传入参数并开始取数据  


//显示数据
var grid = new Ext.grid.GridPanel({
 stripeRows: true,
    el: 'mydiv',
    ds: ds,
    cm: cm,
 height :450, // 高度
 width:Ext.get("mydiv").getWidth(),
 title :'学员信息表', // 表格的标题
 bbar: new Ext.PagingToolbar({
        pageSize: 15,
        store: ds,
        displayInfo: true,
        displayMsg: '显示第 {0} 条到 {1} 条记录,一共 {2} 条',
        emptyMsg: "没有记录"
    })
});

grid.render();
 

});
</script>


</head>

<body>

<div id='mydiv' style="width:720px"></div>

</body>
</html>

 

二、后台程序

jsondada.asp

 

 

<!-- #include file=conn.asp -->
<!-- #include file=jsonclass.asp -->
<%
set json = new jsonclass
json.sql = "select * from student"
json.root = "student"
response.charset="utf-8"
'取得客户端传过来的开始记录号和每页记录数
start = cint(request("start"))
limit = cint(request("limit"))

'start = 100
'limit = 20
'输出从start开始到start+limit(类中已加入判断,如果start+limit大于总记录数,就输出到最后一条记录为止)的json格式的所有记录!
response.Write((json.getjson(start,limit)))

%>

 

 

三、asp生成json格式文字的类

jsonclass.asp

 

 

<%
'---------------------------------------
' jsonclass类
' 将select语句的执行结果转换成json
'
'json标准格式:

'{mytotal:100,root:[{"id","123","name","张三"},{"id","456","name","李四"}]}
'
'或
'
'{mytotal:100,root:[{id,"123",name,"张三"},{id,"456",name,"李四"}]}
'
'------------------------------------------
class jsonclass
' 定义类属性,默认为private
dim p_sqlstring ' 用于设置select
dim p_root ' 返回的json对象的名称
dim rs,conn

private sub class_initialize()
sqlstring = ""
json = ""
'初始化conn和rs
call initconn(conn)
call initrs(rs)
end sub

private sub class_terminate()
'清除conn和rs
call clearconn(conn)
call clearrs(rs)
end sub

' 可以外部调用的公共方法
public function getjson(x,y)

dim rs
dim returnstr
dim i
dim onerecord
dim start
dim limit
dim mycount
dim json
dim ls
start=x
limit=y

'计算记录总数
set rs88= server.createobject("adodb.recordset")
rs88.open sql,conn,1,1
mycount=cint(rs88.recordcount)
'response.write(mycount)
rs88.close
set rs88=nothing

'判断start+limit是否大于记录总数
ls=cint(start)+cint(limit)
if ls>=mycount then
ls=mycount
end if

' 获取数据
set rs= server.createobject("adodb.recordset")
rs.open sql,conn,1,1

' 生成json字符串
if rs.eof=false and rs.bof=false then
json=cstr("{mytotal:"& mycount & ",root:[")
   
for i = start+1 to ls
rs.absoluteposition=i     '将记录指针移到i--记录开始的位置

'读取记录中的各列数据
onerecord="{"
for j=0 to rs.fields.count -1
onerecord=onerecord & chr(34) & rs.fields(j).name&chr(34) &":"
if j=rs.fields.count-1 then  '是最后一列,就不加逗号
onerecord=onerecord & chr(34) & rs.fields(j).value&chr(34)
else
onerecord=onerecord & chr(34) & rs.fields(j).value&chr(34) &","
end if

next
onerecord=onerecord & "}"

'去除最后一条记录后的","
if i <> ls then
            onerecord =onerecord + ","
        end if

'------------
json=json & onerecord
next
json = json +"]}"

'返回json格式字串
getjson=json
end if
end function

 

 

'私用方法,在类中使用
private function check()

end function

'数据库操作
sub initconn(conn)
set conn=server.createobject("adodb.connection")
conn.mode=3
conn.open connstr
end sub

sub clearconn(conn)
conn.close
set conn=nothing
end sub

sub initrs(rs)
set rs=server.createobject("adodb.recordset")
end sub
sub clearrs(rs)
set rs=nothing
end sub

public property get sql
sql = p_sqlstring
end property

public property let sql(value)
p_sqlstring = value
end property

public property get root
root = p_root
end property

public property let root(value)
p_root = value
end property
'
end class
%>

 

四、其它

conn.asp 数据库连接

最后调试成功。如图:

 

 

参考文章:

Ext2.0框架的Grid使用介绍

 

posted @ 2008-10-03 23:00 蓝箭GZ 阅读(622) | 评论 (1)编辑


2008年9月8日

posted @ 2008-09-08 02:02 蓝箭GZ 阅读(645) | 评论 (1)编辑


2008年6月9日

        

        本来机器不差,intel双核/2G内存/GT8600卡,按道理不应该慢,当打开十几个IE窗口或者玩联网游戏的时候,显示速度比较慢!开始以为是网速的问题,后来发现网络游戏人太多,速度不够的时候,游戏会跳帧,而不是慢动作,所以决定优化一下。

1、一般速度瓶颈在硬盘,首先查看一下,[我的电脑]右键属性[硬件][设备管理器][IDE ATA/ATAPI控制器][主要IDE通道][高级设置]如果如下图所示,就不用优化了!




因为WD1600JS串行硬盘只能上到最大Ultra DMA Mode 5 这个速度!

2、优化视觉效果,提高系统性能(效果好明显)
[我的电脑]右键属性[高级][性能-设置],如下图调整:


3、优化虚拟内存:
如下图设置:


4、使用优化大师优化下面项目:
(1).内存1G或以上,磁盘缓存两个都调到最大;




文件系统优化如下:






5、游戏提速-显卡的优化
屏幕右键[属性][设置][高级][GeForce 8600 GT],如下图:


点击[启动 NVIDIA 控制面板],如下图:


左边选[管理3D设置],这个图中关键将[纹理过滤-质量]从原来的高质量改为高性能,点[应用]。

重启电脑,你会发现WINXP系统比以前快了好多(中了病毒除外),特别是显示的速度上,玩网络游戏不再卡了(除了网速问题外)。

注:以上经验,特别适合玩BF1942联网游戏时经常卡(不是网速问题),网速在100ms以内的朋友。



posted @ 2008-06-09 16:35 蓝箭GZ 阅读(896) | 评论 (0)编辑


2008年5月31日

posted @ 2008-05-31 11:49 蓝箭GZ 阅读(469) | 评论 (1)编辑


2008年5月24日

     摘要: ◎Vbs脚本编程简明教程之一—为什么要使用Vbs?在Windows中,学习计算机操作也许很简单,但是很多计算机工作是重复性劳动,例如你每周也许需要对一些计算机文件进行复制、粘贴、改名、删除,也许你每天启动计算机第一件事情就是打开WORD,切换到你喜爱的输入法进行文本编辑,同时还要播放优美的音乐给工作创造一个舒心的环境,当然也有可能你经常需要对文本中的某些数据进行整理,把各式各样的数据按照某种规则排...  阅读全文

posted @ 2008-05-24 21:36 蓝箭GZ 阅读(2270) | 评论 (2)编辑

posted @ 2008-05-24 21:26 蓝箭GZ 阅读(445) | 评论 (0)编辑


2008年4月18日

     摘要: 空牙-游戏音乐合成视频 1.电脑出租,出租,电脑,电脑租赁,租机,广州市电脑出租,海珠区电脑出租,出租台式机,出租手提电脑,租笔记本电脑,电脑维修,坚师傅,专业维修,广州市名将电脑 2.广州市名将电脑__专业服务、价格优惠,提供主流台式电脑、笔记本电脑、激光打印机、数码复印机出租服务!租赁热线:020-33390733 最专业最优惠广州电脑出租电脑租赁最专业最优惠广州电脑出租电脑租赁最专业最优惠广...  阅读全文

posted @ 2008-04-18 09:44 蓝箭GZ 阅读(63) | 评论 (0)编辑


posts - 24, comments - 70, trackbacks - 0, articles - 2

Copyright © 蓝箭GZ