rt越多,更多的tile需要更多的gmem操作,影响性能。同样,越大的surface表示更多的tile、更多的gmem操作。 如果不得不用rt,那么,要做性能和画质之间权衡。 Snapdragon里,trace里,点击surface能看到大小和color、depth、stencil的精度,查找哪些可 ...
分类:
其他好文 时间:
2020-02-21 19:48:09
阅读次数:
77
#_author:来童星#date:2020/2/21import socketdef handle_request(client): #将发送过来的信息拿到 buf=client.recv(1024) #服务器的响应信息 client.send("HTTP/1.1 200 ok\r\n\r\n". ...
分类:
其他好文 时间:
2020-02-21 12:53:22
阅读次数:
78
fd Pwn: Reason: 当fd为0的时候代表标准输入,也就是控制台,然后就可以实现buf=="LETMEWIN\n" , 编辑了一下fd.c-->命名为1.c用来测试,gcc编译指令“gcc 1.c -o 1” #include <stdio.h> #include <stdlib.h> # ...
分类:
其他好文 时间:
2020-02-18 20:13:53
阅读次数:
68
#!/usr/bin/env pythonfrom struct import *import osimport sysdef exactStock(fileName, code): ofile = open(fileName, 'rb') buf = ofile.read() ofile.clos ...
分类:
其他好文 时间:
2020-02-16 20:17:42
阅读次数:
260
我们创建工程后总会自带一个HelloWorld类,短短的几行代码就出来了一个游戏的雏形,请问我们真的理解它了吗?如果我们能早一点弄明白这几行代码,我们或许会比现在走得更远。 理解HelloWorld类 HelloWorld去掉退出按钮只有下面三个函数。 static cocos2d::Scene* ...
分类:
其他好文 时间:
2020-02-15 09:22:27
阅读次数:
89
inline char get() { static char buf[1024]; static int pos=0,size=0; if(pos==size) { size=fread(buf,1,1024,stdin); pos=0; if(!size) return EOF; else re ...
分类:
编程语言 时间:
2020-02-09 11:23:31
阅读次数:
89
调用多次readN,所以要重复使用internal buffer """ The read4 API is already defined for you. @param buf, a list of characters @return an integer def read4(buf): # B ...
分类:
其他好文 时间:
2020-02-07 18:42:43
阅读次数:
71
先用read4拷贝到buf4,然后从buf4里读: """ The read4 API is already defined for you. @param buf, a list of characters @return an integer def read4(buf): # Below is ...
分类:
其他好文 时间:
2020-02-07 16:35:00
阅读次数:
78
https://www.jarvisoj.com/challenges(pwn网址) nc pwn2.jarvisoj.com 9881(远程连接) 在ubuntu16.04上进行连接,看下图 连接之后屏幕出现一行字符 在pwn的网址上看到: 使用file指令 hacker@ubuntu:~$ fi ...
分类:
其他好文 时间:
2020-02-07 15:08:02
阅读次数:
72
lab1-sysmagic 其实是一道逆向题目,关键需要我们输入和buf变量相同的数字,随后进入循环得到flag。第一想法:直接抄他代码,写个脚本跑出flag!(想想把数据提取出来的步骤emm实在是麻烦)更重要的是,我们的脚本就是程序的一部分,直接想办法让它执行一下拿来用就好了,所以更好的方法: g ...
分类:
其他好文 时间:
2020-02-01 00:59:36
阅读次数:
107